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

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

Issue 18555007: Bug fix in analysis engine, implementation of new error code to prevent type parameters in static m… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/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 10fc03baef37473318b9d4539defb18cd9408093..ba792eafe55a86cfe3a812e5ef5fd21401c41322 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
@@ -13,8 +13,8 @@
*/
package com.google.dart.engine.resolver;
-import com.google.dart.engine.error.HintCode;
import com.google.dart.engine.error.CompileTimeErrorCode;
+import com.google.dart.engine.error.HintCode;
import com.google.dart.engine.error.StaticTypeWarningCode;
import com.google.dart.engine.error.StaticWarningCode;
import com.google.dart.engine.parser.ParserErrorCode;
@@ -816,7 +816,9 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase {
" const A();",
"}"));
resolve(source);
- assertErrors(CompileTimeErrorCode.CONST_WITH_TYPE_PARAMETERS);
+ assertErrors(
+ CompileTimeErrorCode.CONST_WITH_TYPE_PARAMETERS,
+ StaticWarningCode.TYPE_PARAMETER_REFERENCED_BY_STATIC);
verify(source);
}
@@ -827,7 +829,9 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase {
" const A();",
"}"));
resolve(source);
- assertErrors(CompileTimeErrorCode.CONST_WITH_TYPE_PARAMETERS);
+ assertErrors(
+ CompileTimeErrorCode.CONST_WITH_TYPE_PARAMETERS,
+ StaticWarningCode.TYPE_PARAMETER_REFERENCED_BY_STATIC);
verify(source);
}

Powered by Google App Engine
This is Rietveld 408576698