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

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

Issue 2765893003: Fix warnings_checker.dart handling of multitests (Closed)
Patch Set: Created 3 years, 9 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
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}) { 8 bar(a, {b}) {
9 } 9 }
10 10
11 class A { 11 class A {
12 A(); 12 A();
13 A.test(a, [b]); 13 A.test(a, [b]);
14 } 14 }
15 15
16 class B { 16 class B {
17 B() 17 B()
18 : super.test(b: 1) // /// 01: runtime error 18 : super.test(b: 1) // //# 01: runtime error
19 ; 19 ;
20 } 20 }
21 21
22 class C extends A { 22 class C extends A {
23 C() 23 C()
24 : super.test(b: 1) // /// 02: runtime error 24 : super.test(b: 1) // //# 02: runtime error
25 ; 25 ;
26 } 26 }
27 27
28 class D { 28 class D {
29 D(); 29 D();
30 D.test(a, {b}); 30 D.test(a, {b});
31 } 31 }
32 32
33 class E extends D { 33 class E extends D {
34 E() 34 E()
35 : super.test(b: 1) // /// 05: runtime error 35 : super.test(b: 1) // //# 05: runtime error
36 ; 36 ;
37 } 37 }
38 38
39 main() { 39 main() {
40 new A.test(b: 1); // /// 00: runtime error 40 new A.test(b: 1); // //# 00: runtime error
41 new B(); 41 new B();
42 new C(); 42 new C();
43 new D.test(b: 1); // /// 03: runtime error 43 new D.test(b: 1); // //# 03: runtime error
44 new E(); 44 new E();
45 foo(b: 1); // /// 06: runtime error 45 foo(b: 1); // //# 06: runtime error
46 bar(b: 1); // /// 07: runtime error 46 bar(b: 1); // //# 07: runtime error
47 } 47 }
OLDNEW
« no previous file with comments | « tests/language_strong/no_such_constructor_test.dart ('k') | tests/language_strong/null_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698