| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | |
| 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. | |
| 4 | |
| 5 // Test that parameter types types are checked correctly in the face of | |
| 6 // mixin application upon a generic constructor. | |
| 7 | |
| 8 import 'checked_mode_helper.dart'; | |
| 9 | |
| 10 class A<X> { | |
| 11 A(X x); | |
| 12 } | |
| 13 | |
| 14 class B {} | |
| 15 | |
| 16 class C1 = A<int> with B; | |
| 17 class C2 = A<String> with B; | |
| 18 | |
| 19 void main() { | |
| 20 var v = 0; | |
| 21 checkNoDynamicTypeError(() => new C1(v)); | |
| 22 checkDynamicTypeError(() => new C2(v)); | |
| 23 } | |
| OLD | NEW |