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

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

Issue 10660030: Remove warning about instantiating an abstract class without implementing a member (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
index c8ae63e7aac804a5bdacfbe0d953b0859e7542d9..f9343273bdc022fefdd1e8589648c829c58e7f87 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
@@ -106,7 +106,7 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase {
libraryResult.source.indexOf("call() => 42"),
element.getNameLocation().getOffset());
}
-
+
/**
* It is a compile-time error if a typedef refers to itself via a chain of references that does
* not include a class or interface type.
@@ -474,7 +474,6 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase {
"}"));
assertErrors(
libraryResult.getTypeErrors(),
- errEx(TypeErrorCode.ABSTRACT_CLASS_WITHOUT_ABSTRACT_MODIFIER, 8, 7, 1),
errEx(TypeErrorCode.INSTANTIATION_OF_CLASS_WITH_UNIMPLEMENTED_MEMBERS, 12, 16, 1));
{
DartCompilationError typeError = libraryResult.getTypeErrors().get(0);
@@ -511,7 +510,6 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase {
"}"));
assertErrors(
libraryResult.getTypeErrors(),
- errEx(TypeErrorCode.ABSTRACT_CLASS_WITHOUT_ABSTRACT_MODIFIER, 4, 7, 1),
errEx(TypeErrorCode.INSTANTIATION_OF_CLASS_WITH_UNIMPLEMENTED_MEMBERS, 8, 16, 1));
{
DartCompilationError typeError = libraryResult.getTypeErrors().get(0);
@@ -662,8 +660,7 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase {
" }",
"}"));
assertErrors(
- libraryResult.getTypeErrors(),
- errEx(TypeErrorCode.ABSTRACT_CLASS_WITHOUT_ABSTRACT_MODIFIER, 1, 7, 1));
+ libraryResult.getTypeErrors());
}
/**
@@ -2231,7 +2228,7 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase {
"");
assertInferredElementTypeString(libraryResult, "v", "Event");
}
-
+
/**
* We should infer closure parameter types even in {@link FunctionType} is specified directly,
* without using {@link FunctionAliasType}.

Powered by Google App Engine
This is Rietveld 408576698