Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 import "package:expect/expect.dart"; | |
| 6 | |
| 7 typedef M1 = Object with M0; | |
| 8 typedef M2 = Object with M1; | |
| 9 | |
| 10 class M0 { | |
| 11 foo() => 42; | |
| 12 } | |
| 13 | |
| 14 makeM2() { | |
| 15 return [new Object(), new M2()].last as M2; | |
| 16 } | |
| 17 | |
| 18 main() { | |
| 19 makeM2().foo(); | |
|
kasperl
2013/04/29 10:27:21
Check that it is 42?
ngeoffray
2013/04/29 10:37:48
Done.
| |
| 20 } | |
| OLD | NEW |