| Index: editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/PropertySemanticProcessorTest.java
|
| diff --git a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/PropertySemanticProcessorTest.java b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/PropertySemanticProcessorTest.java
|
| index acbe1c749e40de7fb7b8f73ed68e87a602531c67..c272984708daa83ee9e077819e7e39a44a0c6a6a 100644
|
| --- a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/PropertySemanticProcessorTest.java
|
| +++ b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/PropertySemanticProcessorTest.java
|
| @@ -267,6 +267,28 @@ public class PropertySemanticProcessorTest extends SemanticProcessorTest {
|
| "}");
|
| }
|
|
|
| + public void test_field_OK_getter_protected() throws Exception {
|
| + translateSingleFile(
|
| + "// filler filler filler filler filler filler filler filler filler filler",
|
| + "package test;",
|
| + "public class Test {",
|
| + " protected final int foo = 42;",
|
| + " public Test(int foo) {",
|
| + " this.foo = foo;",
|
| + " }",
|
| + " public int getFoo() {",
|
| + " return foo;",
|
| + " }",
|
| + "}");
|
| + runProcessor();
|
| + context.ensureUniqueClassMemberNames(unit);
|
| + assertFormattedSource(//
|
| + "class Test {",
|
| + " final int foo;",
|
| + " Test(this.foo);",
|
| + "}");
|
| + }
|
| +
|
| public void test_field_OK_getter_withConstructor() throws Exception {
|
| translateSingleFile(
|
| "// filler filler filler filler filler filler filler filler filler filler",
|
|
|