OLD | NEW |
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 class C<T> = Object with Malformed; // //# 01: compile-time error | 5 class C<T> = Object with Malformed; // //# 01: compile-time error |
6 class C<T> = Object with T; // //# 02: compile-time error | 6 class C<T> = Object with T; // //# 02: compile-time error |
7 class C<T> = OBject with T<int>; // //# 03: compile-time error | 7 class C<T> = OBject with T<int>; // //# 03: compile-time error |
8 | 8 |
9 main() { | 9 main() { |
10 new C<C>(); // //# 01: continued | 10 new C<C>(); // //# 01: continued |
11 new C<C>(); // //# 02: continued | 11 new C<C>(); // //# 02: continued |
12 new C<C>(); // //# 03: continued | 12 new C<C>(); // //# 03: continued |
13 } | 13 } |
OLD | NEW |