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

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

Issue 9186017: Fix crash in dartc when given cyclic type variable bounds. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Went back to prior verion of tests. Created 8 years, 11 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/TypeAnalyzerTestCase.java
diff --git a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTestCase.java b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTestCase.java
index 8b7c4c7e43c6527e93315b0c92f043a1d1055894..d34a2bda20e1070f116d147711e283c29b3d89bc 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTestCase.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTestCase.java
@@ -174,8 +174,8 @@ public abstract class TypeAnalyzerTestCase extends TypeTestCase {
return node;
}
- protected ClassElement analyzeClass(ClassElement cls, int count) {
- setExpectedTypeErrorCount(count);
+ protected ClassElement analyzeClass(ClassElement cls, int expectedErrorCount) {
+ setExpectedTypeErrorCount(expectedErrorCount);
analyzeToplevel(cls.getNode());
checkExpectedTypeErrorCount(cls.getName());
return cls;

Powered by Google App Engine
This is Rietveld 408576698