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

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

Issue 19018005: NEW_WITH_INVALID_TYPE_PARAMETERS is warning (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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/CompileTimeErrorCodeTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
index afbb123a434f08ddead09e501780a8a9a003e6eb..0ffed60f04fb80206e5d2ee890e3078d0ab63459 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
@@ -2286,39 +2286,6 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase {
verify(source);
}
- public void test_newWithInvalidTypeParameters() throws Exception {
- Source source = addSource(createSource(//
- "class A {}",
- "f() { return new A<A>(); }"));
- resolve(source);
- assertErrors(CompileTimeErrorCode.NEW_WITH_INVALID_TYPE_PARAMETERS);
- verify(source);
- }
-
- public void test_newWithInvalidTypeParameters_tooFew() throws Exception {
- Source source = addSource(createSource(//
- "class A {}",
- "class C<K, V> {}",
- "f(p) {",
- " return new C<A>();",
- "}"));
- resolve(source);
- assertErrors(CompileTimeErrorCode.NEW_WITH_INVALID_TYPE_PARAMETERS);
- verify(source);
- }
-
- public void test_newWithInvalidTypeParameters_tooMany() throws Exception {
- Source source = addSource(createSource(//
- "class A {}",
- "class C<E> {}",
- "f(p) {",
- " return new C<A, A>();",
- "}"));
- resolve(source);
- assertErrors(CompileTimeErrorCode.NEW_WITH_INVALID_TYPE_PARAMETERS);
- verify(source);
- }
-
public void test_noAnnotationConstructorArguments() throws Exception {
Source source = addSource(createSource(//
"class A {",

Powered by Google App Engine
This is Rietveld 408576698