Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: tests/compiler/dart2js_extra/23853_test.dart

Issue 1244513003: dart2js: fix dependency tracking for deferred loading when types are only used (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698