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

Unified Diff: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java

Issue 9315061: Specify the types for Element.classes, Element.elements and Node.nodes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed dynamic type error issue with VM. Created 8 years, 9 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/type/TypeAnalyzerTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
index 67bd0a8763d56f8a2e149f3625b80073c4177070..4463899ccc11bc8249ad6edd881126aab426bbf4 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
@@ -19,7 +19,6 @@ import java.util.Map;
*/
public class TypeAnalyzerTest extends TypeAnalyzerTestCase {
-
/**
* There was problem that cyclic class declaration caused infinite loop.
* <p>
@@ -1275,6 +1274,7 @@ public class TypeAnalyzerTest extends TypeAnalyzerTestCase {
public void testUnresolved() {
ClassElement element = loadClass("class_with_supertypes.dart", "ClassWithSupertypes");
+ analyzeIn(element, "this.field", 0);
analyzeIn(element, "null", 0);
analyzeIn(element, "noSuchField", 1);
analyzeIn(element, "noSuchMethod()", 1);
@@ -1283,7 +1283,6 @@ public class TypeAnalyzerTest extends TypeAnalyzerTestCase {
analyzeIn(element, "this.noSuchField", 1);
analyzeIn(element, "this.noSuchMethod()", 1);
analyzeIn(element, "this.method()", 0);
- analyzeIn(element, "this.field", 0);
analyzeIn(element, "staticMethod()", 0);
analyzeIn(element, "staticField", 0);
analyzeIn(element, "this.staticMethod()", 1);
@@ -1363,7 +1362,6 @@ public class TypeAnalyzerTest extends TypeAnalyzerTestCase {
TypeErrorCode.TYPE_NOT_ASSIGNMENT_COMPATIBLE);
}
-
public void testValidateFactoryBounds() {
Map<String, ClassElement> source = loadSource(
"class Object {}",

Powered by Google App Engine
This is Rietveld 408576698