| 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 28b445d3f5fcf608332288b6e94ee3e4d727e798..1dca4ac3446b050a1ae53a4423337d4b5b6c9cb7 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
|
| @@ -121,6 +121,40 @@ public class PropertySemanticProcessorTest extends SemanticProcessorTest {
|
| "}");
|
| }
|
|
|
| + public void test_makeProperty_justField_inherited() throws Exception {
|
| + translateSingleFile(
|
| + "// filler filler filler filler filler filler filler filler filler filler",
|
| + "package test;",
|
| + "public class Test {",
|
| + " static class A {",
|
| + " protected int data;",
|
| + " }",
|
| + " static class B extends A {",
|
| + " public int getFoo() {",
|
| + " return data;",
|
| + " }",
|
| + " }",
|
| + " public void main() {",
|
| + " B b = new B();",
|
| + " print(b.getFoo());",
|
| + " }",
|
| + "}");
|
| + runProcessor();
|
| + assertFormattedSource(
|
| + "class Test {",
|
| + " void main() {",
|
| + " Test_B b = new Test_B();",
|
| + " print(b.foo);",
|
| + " }",
|
| + "}",
|
| + "class Test_A {",
|
| + " int _data = 0;",
|
| + "}",
|
| + "class Test_B extends Test_A {",
|
| + " int get foo => _data;",
|
| + "}");
|
| + }
|
| +
|
| public void test_makeProperty_justField_onlyGetter_noAssignments() throws Exception {
|
| translateSingleFile(
|
| "// filler filler filler filler filler filler filler filler filler filler",
|
|
|