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

Unified Diff: compiler/javatests/com/google/dart/compiler/ast/DartToSourceVisitorTest.java

Issue 8948001: Updates dartc to recognize 'default' keyword on interface and updated factory method syntax (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Feedback from mmendez Created 9 years 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/ast/DartToSourceVisitorTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/ast/DartToSourceVisitorTest.java b/compiler/javatests/com/google/dart/compiler/ast/DartToSourceVisitorTest.java
index beee17b9c9ed4e6d8c19711a8a0ad0a14be45601..00915769bd591fc791ccb73548f712ab63ef1baa 100644
--- a/compiler/javatests/com/google/dart/compiler/ast/DartToSourceVisitorTest.java
+++ b/compiler/javatests/com/google/dart/compiler/ast/DartToSourceVisitorTest.java
@@ -20,7 +20,7 @@ public class DartToSourceVisitorTest extends CompilerTestCase {
String rethrow =
" m() {\n" +
" try {\n" +
- " }\n" +
+ " }\n" +
" catch (var e) {\n" +
" throw;\n" +
" }\n" +
@@ -53,7 +53,17 @@ public class DartToSourceVisitorTest extends CompilerTestCase {
"// unit testcode\n" +
"class c {\n" +
"\n" +
- " factory Array<E>() {\n }\n" +
+ " factory Array() {\n }\n" +
+ "}\n" +
+ "\n");
+ }
+
+ public void testClassWithFactoryParameterized() {
+ same(
+ "// unit testcode\n" +
+ "class c<E> {\n" +
+ "\n" +
+ " factory Array() {\n }\n" +
"}\n" +
"\n");
}

Powered by Google App Engine
This is Rietveld 408576698