Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013, 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 // Regression test case for dart2js bug where the getter for y wasn't | |
| 6 // properly mixed in. | |
|
Johnni Winther
2013/02/19 09:18:49
How is this test related to the changes?
kasperl
2013/02/19 09:20:59
Before this change abstract fields (like the gette
| |
| 7 | |
| 8 class C { | |
| 9 int x; | |
| 10 int get y => x; | |
| 11 } | |
| 12 | |
| 13 class E { | |
| 14 int z = 10; | |
| 15 } | |
| 16 | |
| 17 class D extends E with C { | |
| 18 int w = 42; | |
| 19 } | |
| 20 | |
| 21 main() { | |
| 22 var d = new D(); | |
| 23 d.x = 37; | |
| 24 Expect.equals(37, d.x); | |
| 25 Expect.equals(10, d.z); | |
| 26 Expect.equals(42, d.w); | |
| 27 Expect.equals(37, d.y); | |
| 28 } | |
| OLD | NEW |