OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 class Super { | 5 class Super { |
6 /*Super.field:[exact=JSUInt31]*/ | 6 /*element: Super.field:[exact=JSUInt31]*/ |
7 var field = 42; | 7 var field = 42; |
8 } | 8 } |
9 | 9 |
10 class Sub extends Super { | 10 class Sub extends Super { |
11 /*Sub.method:[exact=JSUInt31]*/ | 11 /*element: Sub.method:[exact=JSUInt31]*/ |
12 method() => super.field; | 12 method() => super.field; |
13 } | 13 } |
14 | 14 |
15 /*main:[null]*/ | 15 /*element: main:[null]*/ |
16 main() { | 16 main() { |
17 new Sub(). /*[exact=Sub]*/ method(); | 17 new Sub(). /*invoke: [exact=Sub]*/ method(); |
18 } | 18 } |
OLD | NEW |