| Index: dart/tests/language/super_assign_test.dart
|
| diff --git a/dart/tests/language/super_assign_test.dart b/dart/tests/language/super_assign_test.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..84f8146d35db1833f67c8c902564fe8fb972bde9
|
| --- /dev/null
|
| +++ b/dart/tests/language/super_assign_test.dart
|
| @@ -0,0 +1,18 @@
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +class A {
|
| + int x;
|
| +}
|
| +
|
| +class C extends A {
|
| + void setX(int value) { super.x = value; }
|
| +}
|
| +
|
| +main() {
|
| + A a = new C();
|
| + a.x = 37;
|
| + a.setX(42);
|
| + Expect.equals(42, a.x);
|
| +}
|
|
|