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

Unified Diff: compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java

Issue 9168020: Issue 985: Default class without constructor does not cause a compile-time error (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Nits 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
« no previous file with comments | « compiler/javatests/com/google/dart/compiler/resolver/NegativeResolverTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java b/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
index 080ab53092e800d42c7b9ff35d35e6a1e4368179..0108c02167c0a769693e4159d4d3dbf450185a4b 100644
--- a/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
+++ b/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
@@ -563,7 +563,7 @@ public class ResolverTest extends ResolverTestCase {
" A();",
"}",
"class B<T extends int> {",
- " A() {}",
+ " factory A() {}",
"}"),
ResolverErrorCode.TYPE_PARAMETERS_MUST_MATCH_EXACTLY);
}
@@ -577,7 +577,7 @@ public class ResolverTest extends ResolverTestCase {
" A();",
"}",
"class B<T> {",
- " A() {}",
+ " factory A() {}",
"}"),
ResolverErrorCode.TYPE_PARAMETERS_MUST_MATCH_EXACTLY);
}
@@ -603,7 +603,7 @@ public class ResolverTest extends ResolverTestCase {
" A();",
"}",
"class B {",
- " A() {}",
+ " factory A() {}",
"}"),
ResolverErrorCode.DEFAULT_CLASS_MUST_HAVE_SAME_TYPE_PARAMS);
}
« no previous file with comments | « compiler/javatests/com/google/dart/compiler/resolver/NegativeResolverTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698