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

Unified Diff: tests/language/mixin_illegal_constructor_test.dart

Issue 1638923002: Compile-time error if mixing class has a factory (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language/language_dart2js.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d0a59fbdd5349d35911ef835039116ad1350642e..8884084406230c2fdfa28fbdf8a0f3c22990397e 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;
+class C0 = Object with M0; /// 20: compile-time error
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 { }
+class D0 extends Object with M0 { } /// 21: compile-time error
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();
+ new C0(); /// 20: continued
new C1(); /// 01: continued
new C2(); /// 02: continued
new C3(); /// 03: continued
@@ -40,16 +40,11 @@ main() {
new C5(); /// 05: continued
new C6(); /// 06: continued
- new D0();
+ new D0(); /// 21: continued
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
- 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
}
« 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