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"); |
} |