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

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

Issue 185053005: Revert "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 832d323c6b649d937152bdb84ac827b5796b9848..45955b56767061621a70b35e7058b70fb5c7f092 100644
--- a/tests/compiler/dart2js/deferred_emit_type_checks_test.dart
+++ b/tests/compiler/dart2js/deferred_emit_type_checks_test.dart
@@ -65,20 +65,18 @@ void main() {
const Map MEMORY_SOURCE_FILES = const {"main.dart": """
import "dart:async";
-@def import 'lib.dart' as lib show f, A, instance;
+@def import 'lib.dart' as lib show f, A;
const def = const DeferredLibrary("deferred");
void main() {
def.load().then((_) {
- print(lib.f(lib.instance));
+ print(lib.f(new lib.A<lib.A>()));
});
}
""", "lib.dart": """
class A<T> {}
-A<A> instance = new A<A>();
-
bool f (Object o) {
return o is A<A>;
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/warnings.dart ('k') | tests/language/deferred_constraints_lib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698