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 class A { | |
6 const A(a); | |
7 } | |
8 | |
9 main() { | |
10 print(const A(1)); | |
11 print(const A()); /// 01: compile-time error, static type warning | |
12 print(const A(1, 2)); /// 02: compile-time error, static type warning | |
kasperl
2012/09/17 09:01:45
This should be extended with something that checks
ngeoffray
2012/09/17 09:10:09
Done.
| |
13 } | |
OLD | NEW |