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

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

Issue 18523012: Report EXTENDS_NON_CLASS for 'extends dynamic'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 ac7c63d1a2fe86c08f2bc98f378a691d77098415..5b0ba40f449c0f5c486c71cff555ca409154dd45 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
@@ -1081,6 +1081,14 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase {
verify(source);
}
+ public void test_extendsNonClass_dynamic() throws Exception {
+ Source source = addSource(createSource(//
+ "class B extends dynamic {}"));
+ resolve(source);
+ assertErrors(CompileTimeErrorCode.EXTENDS_NON_CLASS);
+ verify(source);
+ }
+
public void test_extendsOrImplementsDisallowedClass_extends_bool() throws Exception {
Source source = addSource(createSource(//
"class A extends bool {}"));

Powered by Google App Engine
This is Rietveld 408576698