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

Unified Diff: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.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/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 728f62e1dd0610dad4d9b6f907deee24e1534569..3128d8ab49c75d295cc606df962264ed1997fd3e 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
@@ -598,12 +598,12 @@ public class TypeAnalyzerTest extends TypeAnalyzerTestCase {
" void bar();",
"}",
// Abstract class not reported until first instantiation.
- "class Class implements Interface {", // ABSTRACT_CLASS_WITHOUT_ABSTRACT_MODIFIER
+ "class Class implements Interface {",
" Class() {}",
" String bar() { return null; }",
"}",
// Abstract class not reported until first instantiation.
- "class SubClass extends Class {", // ABSTRACT_CLASS_WITHOUT_ABSTRACT_MODIFIER
+ "class SubClass extends Class {",
" SubClass() : super() {}",
" Object bar() { return null; }",
"}",
@@ -615,8 +615,6 @@ public class TypeAnalyzerTest extends TypeAnalyzerTestCase {
" m() {",
" }",
"}"),
- TypeErrorCode.ABSTRACT_CLASS_WITHOUT_ABSTRACT_MODIFIER,
- TypeErrorCode.ABSTRACT_CLASS_WITHOUT_ABSTRACT_MODIFIER,
TypeErrorCode.CANNOT_OVERRIDE_METHOD_NOT_SUBTYPE,
TypeErrorCode.CANNOT_OVERRIDE_METHOD_NOT_SUBTYPE);
}
« no previous file with comments | « compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java ('k') | tests/language/factory2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698