OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011, 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 // Dart spec 0.03, section 11.10 - generative constructors cannot have return | |
6 // statements in the form 'return e;' where 'e' is any arbitrary expression. | |
7 class A { | |
8 A() { return null; } | |
9 } | |
10 | |
11 main() { | |
12 A a = new A(); | |
13 } | |
OLD | NEW |