OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 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 | 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 void main() { | 5 void main() { |
6 var foo = new Foo(); | 6 var foo = new Foo(); |
7 var bar = new Bar(); /// 01: compile-time error | 7 var bar = new Bar(); //# 01: compile-time error |
8 } | 8 } |
9 | 9 |
10 class Foo { | 10 class Foo { |
11 factory Foo() => null; | 11 factory Foo() => null; |
12 } | 12 } |
13 | 13 |
14 class Bar extends Foo { | 14 class Bar extends Foo { |
15 Bar(); /// 01: continued | 15 Bar(); //# 01: continued |
16 } | 16 } |
OLD | NEW |