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

Unified Diff: tests/compiler/dart2js/deferred_emit_type_checks_test.dart

Issue 177543002: Constrain type annotations with deferred types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js/deferred_emit_type_checks_test.dart
diff --git a/tests/compiler/dart2js/deferred_emit_type_checks_test.dart b/tests/compiler/dart2js/deferred_emit_type_checks_test.dart
index 45955b56767061621a70b35e7058b70fb5c7f092..832d323c6b649d937152bdb84ac827b5796b9848 100644
--- a/tests/compiler/dart2js/deferred_emit_type_checks_test.dart
+++ b/tests/compiler/dart2js/deferred_emit_type_checks_test.dart
@@ -65,18 +65,20 @@ void main() {
const Map MEMORY_SOURCE_FILES = const {"main.dart": """
import "dart:async";
-@def import 'lib.dart' as lib show f, A;
+@def import 'lib.dart' as lib show f, A, instance;
const def = const DeferredLibrary("deferred");
void main() {
def.load().then((_) {
- print(lib.f(new lib.A<lib.A>()));
+ print(lib.f(lib.instance));
});
}
""", "lib.dart": """
class A<T> {}
+A<A> instance = new A<A>();
+
bool f (Object o) {
return o is A<A>;
}

Powered by Google App Engine
This is Rietveld 408576698