| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012, 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('4740_library.dart'); /// 01: continued |
| 6 #import('4740_library.dart'); /// 02: continued |
| 7 #import('4740_int_library.dart'); /// 03: continued |
| 8 |
| 9 class FooBar extends Foo { |
| 10 FooBar() : super._internal(); /// 01: compile-time error |
| 11 } |
| 12 |
| 13 main() { |
| 14 new FooBar(); /// 01: continued |
| 15 Expect.throws(() => new Foo._internal(), /// 02: static type warning |
| 16 (e) => e is NoSuchMethodError); /// 02: continued |
| 17 Expect.throws(() => new FooInterface._internal(), /// 03: static type warning |
| 18 (e) => e is NoSuchMethodError); /// 03: continued |
| 19 } |
| OLD | NEW |