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

Unified Diff: tests/language/mixin_illegal_syntax_test.dart

Issue 12036101: Add more tests and fix the parser to deal with generic superclasses for mixin applications. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove newline. Created 7 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
Index: tests/language/mixin_illegal_syntax_test.dart
diff --git a/tests/language/mixin_illegal_syntax_test.dart b/tests/language/mixin_illegal_syntax_test.dart
index 76e11f33725b392fa8af1982ecf26ea5513340d6..34bf3361d34706978a56ded28a0f6a65f3a3b443 100644
--- a/tests/language/mixin_illegal_syntax_test.dart
+++ b/tests/language/mixin_illegal_syntax_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
class S { }
+class G<T> { }
class M { }
typedef T0 = abstract S with M;
@@ -11,6 +12,8 @@ typedef T2 = var S with M; /// 02: compile-time error
typedef T3 = const S with M; /// 03: compile-time error
typedef T4 = static S with M; /// 04: compile-time error
typedef T5 = external S with M; /// 05: compile-time error
+typedef T6 = G<int> with M;
+typedef T7 = G<Map<String,int>> with M;
class C0 extends abstract S with M { } /// 06: compile-time error
class C1 extends final S with M { } /// 07: compile-time error
@@ -18,6 +21,8 @@ class C2 extends var S with M { } /// 08: compile-time error
class C3 extends const S with M { } /// 09: compile-time error
class C4 extends static S with M { } /// 10: compile-time error
class C5 extends external S with M { } /// 11: compile-time error
+class C6 extends G<int> with M { }
+class C7 extends G<Map<String,int>> with M { }
class D0 extends S with M
implements M /// 12: compile-time error
@@ -32,6 +37,8 @@ main() {
new T3(); /// 03: continued
new T4(); /// 04: continued
new T5(); /// 05: continued
+ new T6();
+ new T7();
new C0(); /// 06: continued
new C1(); /// 07: continued
@@ -39,6 +46,8 @@ main() {
new C3(); /// 09: continued
new C4(); /// 10: continued
new C5(); /// 11: continued
+ new C6();
+ new C7();
new D0(); /// 12: continued
new D1();
« no previous file with comments | « tests/language/language_dart2js.status ('k') | tests/language/mixin_type_parameters_mixin_extends_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698