Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 class C { | 5 class C { |
| 6 final x; | 6 m(x) => this(x); |
| 7 C(this.x); | 7 call(x) => 42; |
| 8 } | 8 } |
| 9 | 9 |
| 10 main() { | 10 main() { |
| 11 new C(42); | 11 print(new C().m(42)); |
| 12 } | 12 } |
| OLD | NEW |