summaryrefslogtreecommitdiff
path: root/test/files/neg/t6988.check
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-05-05 12:39:14 +0200
committerJason Zaugg <jzaugg@gmail.com>2014-05-05 14:49:55 +0200
commit2dbd269c7d7a12c2486f66d6f1d57a96ed662f3c (patch)
tree8342847bca294a4c9f429f93a2f6c85995f0c34c /test/files/neg/t6988.check
parente7ab41e6412c6cf3772ae3153f2a113a8e05699f (diff)
downloadscala-2dbd269c7d7a12c2486f66d6f1d57a96ed662f3c.tar.gz
scala-2dbd269c7d7a12c2486f66d6f1d57a96ed662f3c.tar.bz2
scala-2dbd269c7d7a12c2486f66d6f1d57a96ed662f3c.zip
SI-6988 Test case for non-literal / non-constant SerialVersionUID
The `neg` test was already working since `SerialVersionUID` was changed to a `ClassFileAnnotation`; the `run` test only started working since the recently preceding commit that made a compensatory test in the backend.
Diffstat (limited to 'test/files/neg/t6988.check')
-rw-r--r--test/files/neg/t6988.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/t6988.check b/test/files/neg/t6988.check
new file mode 100644
index 0000000000..acb7b3cb08
--- /dev/null
+++ b/test/files/neg/t6988.check
@@ -0,0 +1,7 @@
+t6988.scala:3: error: annotation argument needs to be a constant; found: 13.asInstanceOf[Long]
+@SerialVersionUID(13.asInstanceOf[Long]) case class IdentifyMessage1(userName: String, user: User, code: Int)
+ ^
+t6988.scala:8: error: annotation argument needs to be a constant; found: O.SerialUID
+@SerialVersionUID(O.SerialUID) case class IdentifyMessage3(userName: String, user: User, code: Int)
+ ^
+two errors found