| 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 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
| 6 | 6 |
| 7 typedef M1 = Object with M0; | 7 class M1 = Object with M0; |
| 8 typedef M2 = Object with M1; | 8 class M2 = Object with M1; |
| 9 | 9 |
| 10 class M0 { | 10 class M0 { |
| 11 foo() => 42; | 11 foo() => 42; |
| 12 } | 12 } |
| 13 | 13 |
| 14 makeM2() { | 14 makeM2() { |
| 15 return [new Object(), new M2()].last as M2; | 15 return [new Object(), new M2()].last as M2; |
| 16 } | 16 } |
| 17 | 17 |
| 18 main() { | 18 main() { |
| 19 Expect.equals(42, makeM2().foo()); | 19 Expect.equals(42, makeM2().foo()); |
| 20 } | 20 } |
| OLD | NEW |