Chromium Code Reviews| 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 B { | |
| 6 final test = const A(1, b: 2); | |
| 7 const B(); | |
| 8 } | |
| 9 | |
| 10 class A { | |
| 11 final x; | |
| 12 final y; | |
| 13 const A(a, [b]) : x = a, y = b; | |
| 14 final test = const B(); | |
| 15 } | |
| 16 | |
| 17 void main() { | |
| 18 print(new A(1)); | |
| 19 } | |
| OLD | NEW |