| 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 A { | 5 class A { |
| 6 var a; | 6 var a; |
| 7 var b; | 7 var b; |
| 8 var c; | 8 var c; |
| 9 var d; | 9 var d; |
| 10 get e => null; | 10 get e => null; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 void m() {} | 24 void m() {} |
| 25 | 25 |
| 26 void n() {} | 26 void n() {} |
| 27 set n(_) {} | 27 set n(_) {} |
| 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; | 43 +super; |
| 44 use(+super); | 44 use(+super); |
| 45 super == 87; | 45 super == 87; |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 } | 251 } |
| 252 } | 252 } |
| 253 | 253 |
| 254 use(x) { | 254 use(x) { |
| 255 if (x == new DateTime.now().millisecondsSinceEpoch) throw "Shouldn't happen"; | 255 if (x == new DateTime.now().millisecondsSinceEpoch) throw "Shouldn't happen"; |
| 256 } | 256 } |
| 257 | 257 |
| 258 main() { | 258 main() { |
| 259 new C().test(); | 259 new C().test(); |
| 260 } | 260 } |
| OLD | NEW |