OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 class C { | 5 class C { |
6 static int staticMethod() => 42; | 6 static int staticMethod() => 42; |
7 } | 7 } |
8 | 8 |
9 class G<T> {} | 9 class G<T> {} |
10 | 10 |
11 class Const { | 11 class Const { |
12 const Const(); | 12 const Const(); |
13 const Const.otherConstructor(); | 13 const Const.otherConstructor(); |
14 static const instance = const Const(); | 14 static const instance = const Const(); |
15 } | 15 } |
16 | 16 |
17 const constantInstance = const Const(); | 17 const constantInstance = const Const(); |
OLD | NEW |