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

Side by Side Diff: dart/tests/language/mixin_illegal_syntax_test.dart

Issue 119673004: Version 1.1.0-dev.5.2 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 class S { } 5 class S { }
6 class G<T> { } 6 class G<T> { }
7 class M { } 7 class M { }
8 8
9 typedef T0 = abstract S with M; 9 typedef T0 = abstract S with M;
10 abstract class T0A = S with M; 10 abstract class T0A = S with M;
(...skipping 13 matching lines...) Expand all
24 class C5 extends external S with M { } /// 11: compile-time error 24 class C5 extends external S with M { } /// 11: compile-time error
25 class C6 extends G<int> with M { } 25 class C6 extends G<int> with M { }
26 class C7 extends G<Map<String,int>> with M { } 26 class C7 extends G<Map<String,int>> with M { }
27 27
28 class D0 extends S with M 28 class D0 extends S with M
29 implements M /// 12: compile-time error 29 implements M /// 12: compile-time error
30 implements M { } 30 implements M { }
31 31
32 class D1 extends T0 { } 32 class D1 extends T0 { }
33 33
34 class X = S; /// 14: compile-time error
35
34 main() { 36 main() {
35 new T0(); /// 13: static type warning, runtime error 37 new T0(); /// 13: static type warning, runtime error
36 new T0A(); /// 13: static type warning, runtime error 38 new T0A(); /// 13: static type warning, runtime error
37 new T1(); /// 01: continued 39 new T1(); /// 01: continued
38 new T2(); /// 02: continued 40 new T2(); /// 02: continued
39 new T3(); /// 03: continued 41 new T3(); /// 03: continued
40 new T4(); /// 04: continued 42 new T4(); /// 04: continued
41 new T5(); /// 05: continued 43 new T5(); /// 05: continued
42 new T6(); 44 new T6();
43 new T7(); 45 new T7();
44 46
45 new C0(); /// 06: continued 47 new C0(); /// 06: continued
46 new C1(); /// 07: continued 48 new C1(); /// 07: continued
47 new C2(); /// 08: continued 49 new C2(); /// 08: continued
48 new C3(); /// 09: continued 50 new C3(); /// 09: continued
49 new C4(); /// 10: continued 51 new C4(); /// 10: continued
50 new C5(); /// 11: continued 52 new C5(); /// 11: continued
51 new C6(); 53 new C6();
52 new C7(); 54 new C7();
53 55
54 new D0(); /// 12: continued 56 new D0(); /// 12: continued
55 new D1(); 57 new D1();
58 new X(); /// 14: continued
56 } 59 }
OLDNEW
« no previous file with comments | « dart/tests/compiler/dart2js_native/dart2js_native.status ('k') | dart/tests/language/string_charcode_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698