OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2015, 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 // Regression for issue 23853: if a type was mainly used in a deferred library, | |
6 // but could be used in a generic type in the main library | |
7 | |
8 import 'import_a_23853.dart'; | |
floitsch
2015/07/17 09:22:25
Use descriptive file-names. You can still mention
Siggi Cherem (dart-lang)
2015/07/17 15:34:49
Done.
| |
9 import 'import_b_23853.dart' deferred as b; | |
10 | |
11 class TypeLiteral<T> { | |
12 Type get type => T; | |
13 } | |
14 | |
15 main() { | |
16 // This line failed with a runtime error prior to the bug fix: | |
17 new TypeLiteral<A<Object>>().type; | |
18 | |
19 b.loadLibrary().then((_) => b.createA()); | |
20 } | |
OLD | NEW |