diff options
-rw-r--r-- | tests/bugs150/pr118326/Bar.java | 10 | ||||
-rw-r--r-- | tests/bugs150/pr118326/Foo.java | 6 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/bugs150/pr118326/Bar.java b/tests/bugs150/pr118326/Bar.java new file mode 100644 index 000000000..4f238ae3a --- /dev/null +++ b/tests/bugs150/pr118326/Bar.java @@ -0,0 +1,10 @@ +public aspect Bar { + public int Foo.x = null; // error + + public int Foo.y = 3; + + public int Foo.z = new Integer(42); // autoboxing + + public int Foo.i = "hello"; // error + +} diff --git a/tests/bugs150/pr118326/Foo.java b/tests/bugs150/pr118326/Foo.java new file mode 100644 index 000000000..ec87a846f --- /dev/null +++ b/tests/bugs150/pr118326/Foo.java @@ -0,0 +1,6 @@ +public class Foo { + //int y = null; + public static void main(String[] args) { + Foo f = new Foo(); + } +} |