Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: tests/language/not_enough_positional_arguments_test.dart

Issue 23460006: Update language status and rewrite a test (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/language/language_dart2js.status ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 foo(a, [b]) { 5 foo(a, [b]) {
6 } 6 }
7 7
8 bar(a, {b}) {
9 }
10
8 class A { 11 class A {
9 A(a, [b]); 12 A(a, [b]);
10 } 13 }
11 14
12 class B { 15 class B {
13 B() 16 B()
14 : super(b: 1) /// 01: runtime error 17 : super(b: 1) /// 01: runtime error
ahe 2013/08/27 17:14:50 This is not going to work. When this line is remo
Søren Gjesse 2013/08/28 08:11:05 Done.
18 ;
19 }
20
21 class C extends A {
22 C()
23 : super(b: 1) /// 02: runtime error
ahe 2013/08/27 17:14:50 Ditto.
Søren Gjesse 2013/08/28 08:11:05 Done.
24 ;
25 }
26
27 class D {
28 D(a, {b});
29 }
30
31 class E {
32 E()
33 : super(b: 1) /// 04: runtime error
34 ;
35 }
36
37 class F extends D {
38 F()
39 : super(b: 1) /// 05: runtime error
kustermann 2013/08/27 16:33:06 In the 'not_enough_positional_arguments_test/none'
Søren Gjesse 2013/08/28 08:11:05 Done.
15 ; 40 ;
16 } 41 }
17 42
18 main() { 43 main() {
19 new B(); /// 01: continued 44 new A(b: 1); /// 00: runtime error
20 foo(b: 1); /// 02: runtime error 45 new B(); /// 01: continued
ahe 2013/08/27 17:14:50 I think you should be able to get rid of all the c
Søren Gjesse 2013/08/28 08:11:05 Done.
46 new C(); /// 02: continued
47 new D(b: 1); /// 03: runtime error
48 new E(); /// 04: continued
49 new F(); /// 05: continued
50 foo(b: 1); /// 06: runtime error
51 bar(b: 1); /// 07: runtime error
21 } 52 }
OLDNEW
« no previous file with comments | « tests/language/language_dart2js.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698