| Index: editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/SemanticTest.java
|
| diff --git a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/SemanticTest.java b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/SemanticTest.java
|
| index 3a9e8b06c8ad4243b6ebdf572a52b5708517029d..b11dfc5f1e6ef651b69dc8234ce28c07d20afb0b 100644
|
| --- a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/SemanticTest.java
|
| +++ b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/SemanticTest.java
|
| @@ -451,6 +451,43 @@ public class SemanticTest extends AbstractSemanticTest {
|
| getFormattedSource(unit));
|
| }
|
|
|
| + public void test_classInner_static_generic() throws Exception {
|
| + setFileLines(
|
| + "test/Test.java",
|
| + toString(
|
| + "// filler filler filler filler filler filler filler filler filler filler",
|
| + "public class A<T> {",
|
| + " public static class B<T> {",
|
| + " public B(A<T> a) {",
|
| + " }",
|
| + " public int getValue() {",
|
| + " return 42;",
|
| + " }",
|
| + " }",
|
| + " int test() {",
|
| + " B<T> b = new B<T>(this);",
|
| + " return b.getValue();",
|
| + " }",
|
| + "}"));
|
| + context.addSourceFolder(tmpFolder);
|
| + context.addSourceFiles(tmpFolder);
|
| + // do translate
|
| + translate();
|
| + assertEquals(
|
| + toString(
|
| + "class A<T> {",
|
| + " int _test() {",
|
| + " A_B<T> b = new A_B<T>(this);",
|
| + " return b.getValue();",
|
| + " }",
|
| + "}",
|
| + "class A_B<T> {",
|
| + " A_B(A<T> a);",
|
| + " int getValue() => 42;",
|
| + "}"),
|
| + getFormattedSource(unit));
|
| + }
|
| +
|
| public void test_classInner2() throws Exception {
|
| setFileLines(
|
| "test/Test.java",
|
|
|