Index: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java |
diff --git a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java |
index ba49e4dcd1d022e286a51f825b34143e9db6b4a2..1e4e2815215381b87281c05e50ad9d90cc88a72d 100644 |
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java |
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java |
@@ -2012,6 +2012,23 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase { |
assertErrors(result.getErrors()); |
} |
+ /** |
+ * <p> |
+ * https://codereview.chromium.org/12787002/ |
+ */ |
+ public void test_typeVariableBounds_12787002() throws Exception { |
+ AnalyzeLibraryResult result = |
+ analyzeLibrary( |
+ "// filler filler filler filler filler filler filler filler filler filler", |
+ "class A<T> {", |
+ " m() {", |
+ " B a = this;", |
+ " }", |
+ "}", |
+ "class B extends A<String> {}"); |
+ assertErrors(result.getErrors()); |
+ } |
+ |
public void test_typeVariableBoundsMismatch() throws Exception { |
AnalyzeLibraryResult result = |
analyzeLibrary( |