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

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

Issue 25509003: It is statically OK to call methods on bottom type. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 ea730578c0493c7bee0affe417abed0a6535ad8f..83f8a34235a2d94dd0f738a3cc44decc2b283ced 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
@@ -15,7 +15,6 @@ package com.google.dart.engine.resolver;
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;
import com.google.dart.engine.source.Source;
@@ -427,20 +426,14 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase {
public void test_constEvalThrowsException_unaryBitNot_null() throws Exception {
Source source = addSource("const C = ~null;");
resolve(source);
- assertErrors(
- source,
- CompileTimeErrorCode.CONST_EVAL_THROWS_EXCEPTION,
- StaticTypeWarningCode.UNDEFINED_OPERATOR);
+ assertErrors(source, CompileTimeErrorCode.CONST_EVAL_THROWS_EXCEPTION);
// no verify(), '~null' is not resolved
}
public void test_constEvalThrowsException_unaryNegated_null() throws Exception {
Source source = addSource("const C = -null;");
resolve(source);
- assertErrors(
- source,
- CompileTimeErrorCode.CONST_EVAL_THROWS_EXCEPTION,
- StaticTypeWarningCode.UNDEFINED_OPERATOR);
+ assertErrors(source, CompileTimeErrorCode.CONST_EVAL_THROWS_EXCEPTION);
// no verify(), '-null' is not resolved
}
@@ -3517,10 +3510,7 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase {
assertErrors(source, CompileTimeErrorCode.CONST_EVAL_THROWS_EXCEPTION);
verify(source);
} else {
- assertErrors(
- source,
- CompileTimeErrorCode.CONST_EVAL_THROWS_EXCEPTION,
- StaticTypeWarningCode.UNDEFINED_OPERATOR);
+ assertErrors(source, CompileTimeErrorCode.CONST_EVAL_THROWS_EXCEPTION);
// no verify(), 'null x' is not resolved
}
reset();

Powered by Google App Engine
This is Rietveld 408576698