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 library ExtendsTestMain; | |
| 6 import "extends_test_lib.dart"; | |
| 7 | |
| 8 // S should extend class A from below, not the one imported | |
| 9 // from the library. | |
| 10 class S extends A { | |
| 11 } | |
| 12 | |
| 13 class A { | |
| 14 var y; | |
| 15 } | |
| 16 | |
| 17 main() { | |
| 18 var s = new S(); | |
| 19 s.y = 10; | |
|
Ivan Posva
2013/06/05 18:31:34
How about not relying on noSuchMethod here and swi
hausner
2013/06/05 18:37:54
Done. We now rely on another unhandled exception t
| |
| 20 } | |
| 21 | |
| OLD | NEW |