OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2017, 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 C { | |
6 factory C() => null; | |
7 } | |
8 | |
9 const //# 01: compile-time error | |
10 t() => null; | |
11 | |
12 const //# 02: compile-time error | |
13 get v => null; | |
14 | |
15 main() { | |
16 const //# 03: compile-time error | |
17 dynamic x = t(); | |
18 const y = const C(); //# 04: compile-time error | |
19 const //# 05: compile-time error | |
20 dynamic z = v; | |
21 } | |
OLD | NEW |