| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // Dart test checking that static/instance field shadowing do not conflict. | 4 // Dart test checking that static/instance field shadowing do not conflict. |
| 5 | 5 |
| 6 // Test that certain interfaces/classes are blacklisted from being | 6 // Test that certain interfaces/classes are blacklisted from being |
| 7 // implemented or extended (VM corelib only). | 7 // implemented or extended (VM corelib only). |
| 8 | 8 |
| 9 #library("BlackListedTest.dart"); | 9 #library("BlackListedTest.dart"); |
| 10 #import("dart:coreimpl"); | |
| 11 | 10 |
| 12 class MyBool extends Bool {} /// 01: compile-time error | 11 class MyBool extends Bool {} /// 01: compile-time error |
| 13 | 12 |
| 14 class MyDouble extends Double {} /// 02: compile-time error | 13 class MyDouble extends Double {} /// 02: compile-time error |
| 15 | 14 |
| 16 class MyObjectArray extends ObjectArray {} /// 03: compile-time error | 15 class MyObjectArray extends ObjectArray {} /// 03: compile-time error |
| 17 | 16 |
| 18 class MyImmutableArray extends ImmutableArray {} /// 04: compile-time error | 17 class MyImmutableArray extends ImmutableArray {} /// 04: compile-time error |
| 19 | 18 |
| 20 class MyGrowableObjectArray extends GrowableObjectArray {} /// 05: compile-time
error | 19 class MyGrowableObjectArray extends GrowableObjectArray {} /// 05: compile-time
error |
| (...skipping 30 matching lines...) Expand all Loading... |
| 51 new MyMint(); /// 08: continued | 50 new MyMint(); /// 08: continued |
| 52 | 51 |
| 53 new MyBigint(); /// 09: continued | 52 new MyBigint(); /// 09: continued |
| 54 | 53 |
| 55 new MyOneByteString(); /// 10: continued | 54 new MyOneByteString(); /// 10: continued |
| 56 | 55 |
| 57 new MyTwoByteString(); /// 11: continued | 56 new MyTwoByteString(); /// 11: continued |
| 58 | 57 |
| 59 new MyFourByteString(); /// 12: continued | 58 new MyFourByteString(); /// 12: continued |
| 60 } | 59 } |
| OLD | NEW |