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/t1942 | |
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/t1942')
-rw-r--r-- | test/files/pos/t1942/A_1.scala | 11 | ||||
-rw-r--r-- | test/files/pos/t1942/Test_2.scala | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/test/files/pos/t1942/A_1.scala b/test/files/pos/t1942/A_1.scala new file mode 100644 index 0000000000..19a7575a0a --- /dev/null +++ b/test/files/pos/t1942/A_1.scala @@ -0,0 +1,11 @@ +class A { + def foo(x: Int) = 0 + def foo(x: String) = 1 +} + +class ann(x: Int) extends StaticAnnotation + +class t { + val a = new A + @ann(a.foo(1)) def bar = 1 +} diff --git a/test/files/pos/t1942/Test_2.scala b/test/files/pos/t1942/Test_2.scala new file mode 100644 index 0000000000..6c045bbce5 --- /dev/null +++ b/test/files/pos/t1942/Test_2.scala @@ -0,0 +1,3 @@ +class Test { + println(new t) +} |