diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2010-08-06 15:58:44 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2010-08-06 15:58:44 +0000 |
commit | d4e2058a3a8d49e4b130223ecaf45036f5d9096d (patch) | |
tree | 5d7cb723296ee84d27289c3a8d71b48b62ec9f05 /test/files/neg | |
parent | 50a178f73e49f2ed52b52f359e74683e06c65b9e (diff) | |
download | scala-d4e2058a3a8d49e4b130223ecaf45036f5d9096d.tar.gz scala-d4e2058a3a8d49e4b130223ecaf45036f5d9096d.tar.bz2 scala-d4e2058a3a8d49e4b130223ecaf45036f5d9096d.zip |
close #3403.
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/t3403.check | 4 | ||||
-rw-r--r-- | test/files/neg/t3403.scala | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/t3403.check b/test/files/neg/t3403.check new file mode 100644 index 0000000000..e52d140e6a --- /dev/null +++ b/test/files/neg/t3403.check @@ -0,0 +1,4 @@ +t3403.scala:2: error: implementation limitation: the BeanProperty annotation cannot be used in a type alias or renamed import +class Foo { @bp var bar: Int = 1 } + ^ +one error found diff --git a/test/files/neg/t3403.scala b/test/files/neg/t3403.scala new file mode 100644 index 0000000000..8be6ab2a31 --- /dev/null +++ b/test/files/neg/t3403.scala @@ -0,0 +1,2 @@ +import scala.reflect.{BeanProperty => bp} +class Foo { @bp var bar: Int = 1 } |