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

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

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). Created 7 years, 9 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";
6
7 class M { 5 class M {
8 } 6 }
9 7
10 class P0 { 8 class P0 {
11 foo() { 9 foo() {
12 super.toString(); /// 01: compile-time error 10 super.toString(); /// 01: compile-time error
13 super.foo(); /// 02: compile-time error 11 super.foo(); /// 02: compile-time error
14 super.bar = 100; /// 03: compile-time error 12 super.bar = 100; /// 03: compile-time error
15 13
16 void inner() { 14 void inner() {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 typedef E = Object with M, P1; 60 typedef E = Object with M, P1;
63 typedef F = Object with P2, M; 61 typedef F = Object with P2, M;
64 62
65 main() { 63 main() {
66 var p1 = new P1(); 64 var p1 = new P1();
67 var p2 = new P2(); 65 var p2 = new P2();
68 Expect.equals(87, p1.bar()); 66 Expect.equals(87, p1.bar());
69 p1.test(); 67 p1.test();
70 Expect.equals(99, p2.baz()); 68 Expect.equals(99, p2.baz());
71 } 69 }
OLDNEW
« no previous file with comments | « tests/language/mixin_illegal_static_access_test.dart ('k') | tests/language/mixin_implements_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698