diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-06-11 11:07:36 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-06-11 11:07:36 +0000 |
commit | c762ae353b9ff8beec6ed9516b70134e1f04534d (patch) | |
tree | 943b68a997b25e8b4004c18997b75925764706f2 /test/files/pos/t1782 | |
parent | 9e8835d617f1176290ad83691146af1f14f6faff (diff) | |
download | scala-c762ae353b9ff8beec6ed9516b70134e1f04534d.tar.gz scala-c762ae353b9ff8beec6ed9516b70134e1f04534d.tar.bz2 scala-c762ae353b9ff8beec6ed9516b70134e1f04534d.zip |
more annotations cleanup.
Diffstat (limited to 'test/files/pos/t1782')
-rw-r--r-- | test/files/pos/t1782/Ann.java | 3 | ||||
-rw-r--r-- | test/files/pos/t1782/Days.java | 3 | ||||
-rw-r--r-- | test/files/pos/t1782/Test_1.scala | 3 |
3 files changed, 8 insertions, 1 deletions
diff --git a/test/files/pos/t1782/Ann.java b/test/files/pos/t1782/Ann.java new file mode 100644 index 0000000000..cd3b2b33ca --- /dev/null +++ b/test/files/pos/t1782/Ann.java @@ -0,0 +1,3 @@ +public @interface Ann { + public Days value(); +}
\ No newline at end of file diff --git a/test/files/pos/t1782/Days.java b/test/files/pos/t1782/Days.java new file mode 100644 index 0000000000..b0d1ac4902 --- /dev/null +++ b/test/files/pos/t1782/Days.java @@ -0,0 +1,3 @@ +public enum Days { + Friday, Sunday +}
\ No newline at end of file diff --git a/test/files/pos/t1782/Test_1.scala b/test/files/pos/t1782/Test_1.scala index de4f0e9886..021dfc6d53 100644 --- a/test/files/pos/t1782/Test_1.scala +++ b/test/files/pos/t1782/Test_1.scala @@ -6,5 +6,6 @@ trait Service { class Provider extends Service { - def someMethod() = () + // test enumeration java annotations + @Ann(Days.Friday) def someMethod() = () } |