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

Unified Diff: tests/language/mixin_illegal_syntax_test.dart

Issue 2556433004: Disallow deprecated typedef syntax for mixin apps in the VM (fixes #14410). (Closed)
Patch Set: dedup test 13 Created 4 years 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_kernel.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_syntax_test.dart
diff --git a/tests/language/mixin_illegal_syntax_test.dart b/tests/language/mixin_illegal_syntax_test.dart
index c9bb06946301187eb862686c40ecf51769527331..167304ddb4384c6b553e807c018dc43b56d61aad 100644
--- a/tests/language/mixin_illegal_syntax_test.dart
+++ b/tests/language/mixin_illegal_syntax_test.dart
@@ -6,8 +6,9 @@ class S { }
class G<T> { }
class M { }
-typedef T0 = abstract S with M;
-abstract class T0A = S with M;
+class T = S with M;
+typedef T0 = S with M; /// 00: compile-time error
+abstract class TA = S with M;
class T1 = final S with M; /// 01: compile-time error
class T2 = var S with M; /// 02: compile-time error
class T3 = const S with M; /// 03: compile-time error
@@ -29,13 +30,13 @@ class D0 extends S with M
implements M /// 12: compile-time error
implements M { }
-class D1 extends T0 { }
+class D1 extends T { }
class X = S; /// 14: compile-time error
main() {
- new T0(); /// 13: static type warning, runtime error
- new T0A(); /// 13: static type warning, runtime error
+ new T();
+ new TA(); /// 13: static type warning, runtime error
new T1(); /// 01: continued
new T2(); /// 02: continued
new T3(); /// 03: continued
« no previous file with comments | « tests/language/language_kernel.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698