OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 // VMOptions=--no-support_ast_printer | 5 typedef int Adder(int a, int b); |
| 6 |
| 7 class Mock { |
| 8 noSuchMethod(i) => null; |
| 9 } |
| 10 |
| 11 class MockAdder extends Mock { |
| 12 int call(int a, int b); |
| 13 } |
6 | 14 |
7 main() { | 15 main() { |
8 print("Okay"); | 16 Adder adder = new MockAdder(); |
9 } | 17 } |
OLD | NEW |