summaryrefslogtreecommitdiff
path: root/test/files/run/t6236
diff options
context:
space:
mode:
authorAleksandar Prokopec <axel22@gmail.com>2012-08-17 10:55:14 +0200
committerPaul Phillips <paulp@improving.org>2012-08-17 06:40:01 -0700
commitfaa114e2fb6003031efa2cdd56a32a3c44aa71fb (patch)
tree7af367d2bc0c484eaf09ea8e79bd61551669122d /test/files/run/t6236
parent5a8dfad583b825158cf0abdae5d73a4a7f8cd997 (diff)
downloadscala-faa114e2fb6003031efa2cdd56a32a3c44aa71fb.tar.gz
scala-faa114e2fb6003031efa2cdd56a32a3c44aa71fb.tar.bz2
scala-faa114e2fb6003031efa2cdd56a32a3c44aa71fb.zip
Fixes SI-6236.
In separate compilation runs, the static field symbol in the companion class of an object was not being recreated. Given that the singleton object was compiled separately, the static field symbol will be recreated on demand.
Diffstat (limited to 'test/files/run/t6236')
-rw-r--r--test/files/run/t6236/file_1.scala9
-rw-r--r--test/files/run/t6236/file_2.scala10
2 files changed, 19 insertions, 0 deletions
diff --git a/test/files/run/t6236/file_1.scala b/test/files/run/t6236/file_1.scala
new file mode 100644
index 0000000000..92d22799fc
--- /dev/null
+++ b/test/files/run/t6236/file_1.scala
@@ -0,0 +1,9 @@
+
+
+package p {
+ object y {
+ object x {
+ @scala.annotation.static val foo: Int = 353
+ }
+ }
+}
diff --git a/test/files/run/t6236/file_2.scala b/test/files/run/t6236/file_2.scala
new file mode 100644
index 0000000000..51823004ca
--- /dev/null
+++ b/test/files/run/t6236/file_2.scala
@@ -0,0 +1,10 @@
+
+
+
+object Test {
+ def main(args: Array[String]): Unit = {
+ println(p.y.x.foo)
+ println(p.y.x.foo)
+ }
+}
+