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

Unified Diff: compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java

Issue 10873096: Issue 3904. Allow using class literal in expressions (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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: compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java b/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
index 3afded79b07d152c9fe67176ef7df5c780852484..f006e757ecfc66e0797a99890a44f1b3c89170e1 100644
--- a/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
+++ b/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
@@ -1164,8 +1164,7 @@ public class ResolverTest extends ResolverTestCase {
"class Object {}",
"main() {",
" 0.25 - Object;",
- "}"),
- ResolverErrorCode.IS_A_CLASS);
+ "}"));
}
public void test_typeVariableUsedAsExpression() {
@@ -1713,8 +1712,7 @@ public class ResolverTest extends ResolverTestCase {
"class Object {}",
"method () {",
" var a = Object;",
- "}"),
- errEx(ResolverErrorCode.IS_A_CLASS, 3, 11, 6));
+ "}"));
}
public void test_isAnInstanceMethod() {

Powered by Google App Engine
This is Rietveld 408576698