diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-06-07 11:13:47 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-06-07 11:13:47 +0000 |
commit | 8cc477f8b6fd81c45fe30ac454c021a9769911ad (patch) | |
tree | ce574d8e84ea47c453298fe557b49f7d51ddfdf3 /test/files/pos/t294 | |
parent | a2166dec9d687347a08c9e6a95e07f1a67f0d370 (diff) | |
download | scala-8cc477f8b6fd81c45fe30ac454c021a9769911ad.tar.gz scala-8cc477f8b6fd81c45fe30ac454c021a9769911ad.tar.bz2 scala-8cc477f8b6fd81c45fe30ac454c021a9769911ad.zip |
fixed BeanProperty, added BooleanBeanProperty, ...
fixed BeanProperty, added BooleanBeanProperty, added many tests (#1029,
#1751, #294, #1942, #1782, #1788, #637).
Diffstat (limited to 'test/files/pos/t294')
-rw-r--r-- | test/files/pos/t294/Ann.java | 3 | ||||
-rw-r--r-- | test/files/pos/t294/Ann2.java | 3 | ||||
-rw-r--r-- | test/files/pos/t294/Test_1.scala | 7 | ||||
-rw-r--r-- | test/files/pos/t294/Test_2.scala | 1 |
4 files changed, 14 insertions, 0 deletions
diff --git a/test/files/pos/t294/Ann.java b/test/files/pos/t294/Ann.java new file mode 100644 index 0000000000..934ca46297 --- /dev/null +++ b/test/files/pos/t294/Ann.java @@ -0,0 +1,3 @@ +public @interface Ann { + public Ann2[] nested(); +} diff --git a/test/files/pos/t294/Ann2.java b/test/files/pos/t294/Ann2.java new file mode 100644 index 0000000000..958cf1ab76 --- /dev/null +++ b/test/files/pos/t294/Ann2.java @@ -0,0 +1,3 @@ +public @interface Ann2 { + public int value(); +}
\ No newline at end of file diff --git a/test/files/pos/t294/Test_1.scala b/test/files/pos/t294/Test_1.scala new file mode 100644 index 0000000000..ff1f34b10e --- /dev/null +++ b/test/files/pos/t294/Test_1.scala @@ -0,0 +1,7 @@ +// also test pickling of java annotations; Test_2.scala will +// read this class file +@Ann(nested = Array(new Ann2(10))) class Test { + @Ann2(100) var ctx: Object = _ + @Ann(nested = Array()) def foo = 10 + @Ann(nested = Array(new Ann2(10), new Ann2(23))) val bam = -3 +} diff --git a/test/files/pos/t294/Test_2.scala b/test/files/pos/t294/Test_2.scala new file mode 100644 index 0000000000..9fb1c6e175 --- /dev/null +++ b/test/files/pos/t294/Test_2.scala @@ -0,0 +1 @@ +class Test2 extends Test |