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

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

Issue 27300003: Change "typedef" to "class" in core library and related tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update some dart2js tests and unparser. Created 7 years, 2 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 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 6
7 class M { 7 class M {
8 } 8 }
9 9
10 class P0 { 10 class P0 {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } 50 }
51 } 51 }
52 52
53 class P2 { 53 class P2 {
54 baz() { 54 baz() {
55 super.toString(); /// 11: compile-time error 55 super.toString(); /// 11: compile-time error
56 return 99; 56 return 99;
57 } 57 }
58 } 58 }
59 59
60 typedef C = Object with M; 60 class C = Object with M;
61 typedef D = Object with P0; 61 class D = Object with P0;
62 typedef E = Object with M, P1; 62 class E = Object with M, P1;
63 typedef F = Object with P2, M; 63 class F = Object with P2, M;
64 64
65 main() { 65 main() {
66 var p1 = new P1(); 66 var p1 = new P1();
67 var p2 = new P2(); 67 var p2 = new P2();
68 Expect.equals(87, p1.bar()); 68 Expect.equals(87, p1.bar());
69 p1.test(); 69 p1.test();
70 Expect.equals(99, p2.baz()); 70 Expect.equals(99, p2.baz());
71 } 71 }
OLDNEW
« no previous file with comments | « tests/language/mixin_illegal_static_access_test.dart ('k') | tests/language/mixin_illegal_superclass_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698