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

Unified Diff: tests/compiler/dart2js_extra/deferred/interface_type_variable_lib.dart

Issue 3000843002: Add dependencies to type variables used in the super type declaration, but do (Closed)
Patch Set: v2 Created 3 years, 4 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_extra/deferred/interface_type_variable_lib.dart
diff --git a/tests/compiler/dart2js_extra/deferred/interface_type_variable_lib.dart b/tests/compiler/dart2js_extra/deferred/interface_type_variable_lib.dart
new file mode 100644
index 0000000000000000000000000000000000000000..fb18b05f3180bcbf077ad195facc8bfe0bbca6e1
--- /dev/null
+++ b/tests/compiler/dart2js_extra/deferred/interface_type_variable_lib.dart
@@ -0,0 +1,15 @@
+// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+class A {}
+
+class I<T> {}
+
+// C needs to include "N", otherwise checking for `is I<A>` will likely cause
+// problems
+class C extends A implements I<N> {}
+
+class N extends A {}
+
+doCheck(x) => x is I<A>;

Powered by Google App Engine
This is Rietveld 408576698