| 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 // TODO(ahe): This is a copy of [rasta/super.dart] without the `n` | 5 // TODO(ahe): This is a copy of [rasta/super.dart] without the `n` |
| 6 // property. Remove this once fasta can handle all of the original file. | 6 // property. Remove this once fasta can handle all of the original file. |
| 7 | 7 |
| 8 class A { | 8 class A { |
| 9 var a; | 9 var a; |
| 10 var b; | 10 var b; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 operator ==(other) => true; | 25 operator ==(other) => true; |
| 26 | 26 |
| 27 void m() {} | 27 void m() {} |
| 28 } | 28 } |
| 29 | 29 |
| 30 class B extends A { | 30 class B extends A { |
| 31 get b => null; | 31 get b => null; |
| 32 set c(x) {} | 32 set c(x) {} |
| 33 final d; | 33 final d; |
| 34 set i(x) {}} | 34 set i(x) {} |
| 35 | 35 } |
| 36 | 36 |
| 37 class C extends B { | 37 class C extends B { |
| 38 test() { | 38 test() { |
| 39 ~super; | 39 ~super; |
| 40 use(~super); | 40 use(~super); |
| 41 -super; | 41 -super; |
| 42 use(-super); | 42 use(-super); |
| 43 super == 87; | 43 super == 87; |
| 44 use(super == 87); | 44 use(super == 87); |
| 45 super != 87; | 45 super != 87; |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 } | 238 } |
| 239 | 239 |
| 240 main() { | 240 main() { |
| 241 try { | 241 try { |
| 242 new C().test(); | 242 new C().test(); |
| 243 } on NoSuchMethodError { | 243 } on NoSuchMethodError { |
| 244 return; // Test passed. | 244 return; // Test passed. |
| 245 } | 245 } |
| 246 throw "Test failed"; | 246 throw "Test failed"; |
| 247 } | 247 } |
| OLD | NEW |