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

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

Issue 1635763003: Restore old supermixin functionality to shared language tests. Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 // SharedOptions=--supermixin
4 5
5 import "package:expect/expect.dart"; 6 import "package:expect/expect.dart";
6 7
7 bool inCheckedMode() { 8 bool inCheckedMode() {
8 try { 9 try {
9 var i = 42; 10 var i = 42;
10 String s = i; 11 String s = i;
11 } on TypeError catch (e) { 12 } on TypeError catch (e) {
12 return true; 13 return true;
13 } 14 }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // type argument List<List<num>> is not a subtype of List<List<int>>. 67 // type argument List<List<num>> is not a subtype of List<List<int>>.
67 Expect.throws(() => new MNA4<int, num, bool>(), (e) => e is TypeError); 68 Expect.throws(() => new MNA4<int, num, bool>(), (e) => e is TypeError);
68 } else { 69 } else {
69 new MNA<int, num, bool>(); 70 new MNA<int, num, bool>();
70 new MNA2<int, num, bool>(); 71 new MNA2<int, num, bool>();
71 new MNA3<int, num, bool>(); 72 new MNA3<int, num, bool>();
72 new MNA4<int, num, bool>(); 73 new MNA4<int, num, bool>();
73 } 74 }
74 } 75 }
75 76
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698