| 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 |
| 6 class A { |
| 7 // Constructor may not be static. |
| 8 static A(); /// 00: compile-time error |
| 9 |
| 10 // Factory may not be static. |
| 11 static factory A() { return null; } /// 01: compile-time error |
| 12 |
| 13 // Constructor may not be abstract. |
| 14 abstract A(); /// 02: compile-time error |
| 15 |
| 16 // Factory may not be abstract |
| 17 abstract factory A() { return null; } /// 03: compile-time error |
| 18 } |
| 19 |
| 20 main() { |
| 21 new A(); |
| 22 } |
| OLD | NEW |