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

Unified Diff: editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/SemanticTest.java

Issue 198453002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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/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",

Powered by Google App Engine
This is Rietveld 408576698