diff options
author | Paul Phillips <paulp@improving.org> | 2012-05-11 10:25:34 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-05-11 10:26:29 -0700 |
commit | 807567230852bcadb98a91322bd348aae764801f (patch) | |
tree | e7efba8909d8c50b76a343192e6a0eb277c61527 /test/files/pos/t2764 | |
parent | 2422b064e7a52c04dfb2239fc8e7b9ffbab24251 (diff) | |
download | scala-807567230852bcadb98a91322bd348aae764801f.tar.gz scala-807567230852bcadb98a91322bd348aae764801f.tar.bz2 scala-807567230852bcadb98a91322bd348aae764801f.zip |
Recognize java enums as constants from source.
Fixed up one of the mismatches between how java source is modeled
and how java bytecode is modeled. We should get the rest of them
too. Closes SI-2764.
Diffstat (limited to 'test/files/pos/t2764')
-rw-r--r-- | test/files/pos/t2764/Ann.java | 5 | ||||
-rw-r--r-- | test/files/pos/t2764/Enum.java | 5 | ||||
-rw-r--r-- | test/files/pos/t2764/Use.scala | 6 |
3 files changed, 16 insertions, 0 deletions
diff --git a/test/files/pos/t2764/Ann.java b/test/files/pos/t2764/Ann.java new file mode 100644 index 0000000000..184fc6e864 --- /dev/null +++ b/test/files/pos/t2764/Ann.java @@ -0,0 +1,5 @@ +package bippy; + +public @interface Ann { + Enum value(); +} diff --git a/test/files/pos/t2764/Enum.java b/test/files/pos/t2764/Enum.java new file mode 100644 index 0000000000..fe07559535 --- /dev/null +++ b/test/files/pos/t2764/Enum.java @@ -0,0 +1,5 @@ +package bippy; + +public enum Enum { + VALUE; +} diff --git a/test/files/pos/t2764/Use.scala b/test/files/pos/t2764/Use.scala new file mode 100644 index 0000000000..8cf8102709 --- /dev/null +++ b/test/files/pos/t2764/Use.scala @@ -0,0 +1,6 @@ +package bippy + +class Use { + @Ann(Enum.VALUE) + def foo {} +} |