OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 library literals_test; |
| 6 |
| 7 import 'test_base.dart'; |
| 8 |
| 9 class A {} |
| 10 |
| 11 class B {} |
| 12 |
| 13 main() { |
| 14 expectTrue(<A>[] is List<A>); |
| 15 expectTrue(<A>[] is! List<B>); |
| 16 |
| 17 expectTrue(<A, B>{} is Map<A, B>); |
| 18 expectTrue(<A, B>{} is! Map<A, A>); |
| 19 expectTrue(<A, B>{} is! Map<B, B>); |
| 20 } |
OLD | NEW |