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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java

Issue 18808002: Report IMPLEMENTS_SUPER_CLASS (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Test for implicit Object superclass Created 7 years, 5 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: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
index 96958308cff617140111068d8d006198363c390f..1fd0d512ba835613ff313c741458019ca1cdd825 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
@@ -1501,6 +1501,23 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase {
verify(source);
}
+ public void test_implementsSuperClass() throws Exception {
+ Source source = addSource(createSource(//
+ "class A {}",
+ "class B extends A implements A {}"));
+ resolve(source);
+ assertErrors(CompileTimeErrorCode.IMPLEMENTS_SUPER_CLASS);
+ verify(source);
+ }
+
+ public void test_implementsSuperClass_Object() throws Exception {
+ Source source = addSource(createSource(//
+ "class A implements Object {}"));
+ resolve(source);
+ assertErrors(CompileTimeErrorCode.IMPLEMENTS_SUPER_CLASS);
+ verify(source);
+ }
+
public void test_implicitThisReferenceInInitializer_field() throws Exception {
Source source = addSource(createSource(//
"class A {",

Powered by Google App Engine
This is Rietveld 408576698