OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // Test that the additional runtime type support is output to the right | 5 // Test that the additional runtime type support is output to the right |
6 // Files when using deferred loading. | 6 // Files when using deferred loading. |
7 | 7 |
8 import 'package:async_helper/async_helper.dart'; | 8 import 'package:async_helper/async_helper.dart'; |
9 import 'package:compiler/src/dart2jslib.dart'; | 9 import 'package:compiler/src/compiler.dart'; |
10 import 'package:compiler/src/js_backend/js_backend.dart' | 10 import 'package:compiler/src/js_backend/js_backend.dart' |
11 show JavaScriptBackend; | 11 show JavaScriptBackend; |
12 import 'package:expect/expect.dart'; | 12 import 'package:expect/expect.dart'; |
13 import 'memory_compiler.dart'; | 13 import 'memory_compiler.dart'; |
14 import 'output_collector.dart'; | 14 import 'output_collector.dart'; |
15 | 15 |
16 void main() { | 16 void main() { |
17 asyncTest(() async { | 17 asyncTest(() async { |
18 OutputCollector collector = new OutputCollector(); | 18 OutputCollector collector = new OutputCollector(); |
19 CompilationResult result = await runCompiler( | 19 CompilationResult result = await runCompiler( |
(...skipping 26 matching lines...) Expand all Loading... |
46 class A<T> {} | 46 class A<T> {} |
47 | 47 |
48 class B<T> implements A<T> {} | 48 class B<T> implements A<T> {} |
49 | 49 |
50 B<B> instance = new B<B>(); | 50 B<B> instance = new B<B>(); |
51 | 51 |
52 bool f (Object o) { | 52 bool f (Object o) { |
53 return o is A<A>; | 53 return o is A<A>; |
54 } | 54 } |
55 """,}; | 55 """,}; |
OLD | NEW |