Chromium Code Reviews| Index: tests/language/mixin_illegal_constructor_test.dart |
| diff --git a/tests/language/mixin_illegal_constructor_test.dart b/tests/language/mixin_illegal_constructor_test.dart |
| index 8884084406230c2fdfa28fbdf8a0f3c22990397e..d0a59fbdd5349d35911ef835039116ad1350642e 100644 |
| --- a/tests/language/mixin_illegal_constructor_test.dart |
| +++ b/tests/language/mixin_illegal_constructor_test.dart |
| @@ -15,7 +15,7 @@ class M2 { |
| M2.named(); |
| } |
| -class C0 = Object with M0; /// 20: compile-time error |
| +class C0 = Object with M0; |
| class C1 = Object with M1; /// 01: compile-time error |
| class C2 = Object with M2; /// 02: compile-time error |
| class C3 = Object with M0, M1; /// 03: compile-time error |
| @@ -23,7 +23,7 @@ class C4 = Object with M1, M0; /// 04: compile-time error |
| class C5 = Object with M0, M2; /// 05: compile-time error |
| class C6 = Object with M2, M0; /// 06: compile-time error |
| -class D0 extends Object with M0 { } /// 21: compile-time error |
| +class D0 extends Object with M0 { } |
| class D1 extends Object with M1 { } /// 07: compile-time error |
| class D2 extends Object with M2 { } /// 08: compile-time error |
| class D3 extends Object with M0, M1 { } /// 09: compile-time error |
| @@ -32,7 +32,7 @@ class D5 extends Object with M0, M2 { } /// 11: compile-time error |
| class D6 extends Object with M2, M0 { } /// 12: compile-time error |
| main() { |
| - new C0(); /// 20: continued |
| + new C0(); |
| new C1(); /// 01: continued |
| new C2(); /// 02: continued |
| new C3(); /// 03: continued |
| @@ -40,11 +40,16 @@ main() { |
| new C5(); /// 05: continued |
| new C6(); /// 06: continued |
| - new D0(); /// 21: continued |
| + new D0(); |
| new D1(); /// 07: continued |
| new D2(); /// 08: continued |
| new D3(); /// 09: continued |
| new D4(); /// 10: continued |
| new D5(); /// 11: continued |
| new D6(); /// 12: continued |
| + |
| + new C0(1,2,3); /// 13: static type warning, runtime error |
|
Ivan Posva
2016/02/17 07:51:26
As far as I understood from Gilad even if we allow
Jacob
2016/02/19 20:53:03
Correct.
|
| + new C0.named(); /// 14: static type warning, runtime error |
| + new D0(1,2,3); /// 15: static type warning, runtime error |
| + new D0.named(); /// 16: static type warning, runtime error |
| } |