diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2008-10-22 07:45:47 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2008-10-22 07:45:47 +0000 |
commit | f353a1d4fe83127f450941a9624ff562926984cf (patch) | |
tree | 0415915ac034b1e9b818219b452580730ed53625 /test/files/pos | |
parent | baa6f58f76e697d98336ce4ef2dbc71c7e0fccc7 (diff) | |
download | scala-f353a1d4fe83127f450941a9624ff562926984cf.tar.gz scala-f353a1d4fe83127f450941a9624ff562926984cf.tar.bz2 scala-f353a1d4fe83127f450941a9624ff562926984cf.zip |
fixed #637 #1070
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/annotations.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/annotations.scala b/test/files/pos/annotations.scala index d96c8e0c6a..558fd62956 100644 --- a/test/files/pos/annotations.scala +++ b/test/files/pos/annotations.scala @@ -9,4 +9,14 @@ object Test { def c: Int @ann(x) = 1 def d: String @ann({val z = 0; z - 1}) = "2" + + import scala.reflect.BeanProperty + + // bug #637 + trait S { def getField(): Int } + class O extends S { @BeanProperty val field = 0 } + + // bug #1070 + trait T { @BeanProperty var field = 1 } } + |