| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |