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(); |
8 | |
9 /// 01: compile-time error | |
Siggi Cherem (dart-lang)
2016/09/16 20:55:22
revert
Harry Terkelsen
2016/09/16 21:44:03
Done.
| |
8 } | 10 } |
9 | 11 |
10 class Foo { | 12 class Foo { |
11 factory Foo() => null; | 13 factory Foo() => null; |
12 } | 14 } |
13 | 15 |
14 class Bar extends Foo { | 16 class Bar extends Foo { |
15 Bar(); /// 01: continued | 17 Bar(); |
18 | |
19 /// 01: continued | |
16 } | 20 } |
OLD | NEW |