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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java

Issue 17575018: Combine TYPE_ARGUMENT_VIOLATES_BOUNDS and TYPE_ARGUMENT_NOT_MATCHING_BOUNDS into TYPE_ARGUMENT_NOT_… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase before commit Created 7 years, 6 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: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
index 1bbe2ad53f16168fe95002569cf667ef29f8ff8d..bd6c20d51f87a34536eb924f005378c42903cc85 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
@@ -2192,6 +2192,30 @@ public class NonErrorResolverTest extends ResolverTestCase {
verify(source);
}
+ public void test_typeArgumentNotMatchingBounds_typeArgumentList_0() throws Exception {
+ Source source = addSource(createSource(//
+ "abstract class A<T extends A>{}"));
+ resolve(source);
+ assertNoErrors();
+ verify(source);
+ }
+
+ public void test_typeArgumentNotMatchingBounds_typeArgumentList_1() throws Exception {
+ Source source = addSource(createSource(//
+ "abstract class A<T extends A<A>>{}"));
+ resolve(source);
+ assertNoErrors();
+ verify(source);
+ }
+
+ public void test_typeArgumentNotMatchingBounds_typeArgumentList_20() throws Exception {
+ Source source = addSource(createSource(//
+ "abstract class A<T extends A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A>>>>>>>>>>>>>>>>>>>>>{}"));
+ resolve(source);
+ assertNoErrors();
+ verify(source);
+ }
+
public void test_undefinedConstructorInInitializer_explicit_named() throws Exception {
Source source = addSource(createSource(//
"class A {",

Powered by Google App Engine
This is Rietveld 408576698