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 Foo { |
| 6 final x; | 6 Foo(x, y); |
| 7 C(this.x); | |
| 8 } | 7 } |
| 9 | 8 |
| 10 main() { | 9 main() { |
| 11 new C(42); | 10 new Foo(); |
| 11 new Foo.notHere(); | |
| 12 } | 12 } |
| OLD | NEW |