OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 import "package:expect/expect.dart"; |
| 6 |
5 // When attempting to call a nonexistent static method, getter or setter, check | 7 // When attempting to call a nonexistent static method, getter or setter, check |
6 // that a NoSuchMethodError is thrown. | 8 // that a NoSuchMethodError is thrown. |
7 | 9 |
8 class C {} | 10 class C {} |
9 | 11 |
10 class D { | 12 class D { |
11 get hest => 1; /// 04: continued | 13 get hest => 1; /// 04: continued |
12 set hest(val) {} /// 05: continued | 14 set hest(val) {} /// 05: continued |
13 } | 15 } |
14 | 16 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 expectNsme( | 93 expectNsme( |
92 test08 /// 08: continued | 94 test08 /// 08: continued |
93 ); | 95 ); |
94 expectNsme( | 96 expectNsme( |
95 test09 /// 09: continued | 97 test09 /// 09: continued |
96 ); | 98 ); |
97 expectNsme( | 99 expectNsme( |
98 test10 /// 10: continued | 100 test10 /// 10: continued |
99 ); | 101 ); |
100 } | 102 } |
OLD | NEW |