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:expect/expect.dart'; | 8 import 'package:expect/expect.dart'; |
9 import "package:async_helper/async_helper.dart"; | 9 import "package:async_helper/async_helper.dart"; |
10 import 'memory_source_file_helper.dart'; | 10 import 'memory_source_file_helper.dart'; |
11 import "dart:async"; | 11 import "dart:async"; |
12 | 12 |
13 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' | 13 import 'package:compiler/implementation/dart2jslib.dart' |
14 as dart2js; | 14 as dart2js; |
15 | 15 |
16 class MemoryOutputSink<T> extends EventSink<T> { | 16 class MemoryOutputSink<T> extends EventSink<T> { |
17 List<T> mem = new List<T>(); | 17 List<T> mem = new List<T>(); |
18 void add(T event) { | 18 void add(T event) { |
19 mem.add(event); | 19 mem.add(event); |
20 } | 20 } |
21 void addError(T event, [StackTrace stackTrace]) {} | 21 void addError(T event, [StackTrace stackTrace]) {} |
22 void close() {} | 22 void close() {} |
23 } | 23 } |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 } | 76 } |
77 """, "lib.dart": """ | 77 """, "lib.dart": """ |
78 class A<T> {} | 78 class A<T> {} |
79 | 79 |
80 A<A> instance = new A<A>(); | 80 A<A> instance = new A<A>(); |
81 | 81 |
82 bool f (Object o) { | 82 bool f (Object o) { |
83 return o is A<A>; | 83 return o is A<A>; |
84 } | 84 } |
85 """,}; | 85 """,}; |
OLD | NEW |