diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-09-30 14:50:30 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-09-30 14:58:55 +1000 |
commit | bcd1e4f3a3c7a683bb7cf435ef8163ecaf90f126 (patch) | |
tree | 43fe4ac6958a20f6244e86609345443e99635cad /test/files/pos/t8868c | |
parent | 2cfac1a3516850a40728fefd8f808613d2e83f84 (diff) | |
download | scala-bcd1e4f3a3c7a683bb7cf435ef8163ecaf90f126.tar.gz scala-bcd1e4f3a3c7a683bb7cf435ef8163ecaf90f126.tar.bz2 scala-bcd1e4f3a3c7a683bb7cf435ef8163ecaf90f126.zip |
SI-8868 Fix unpickling of local dummy symbols
These pop up as the owner of symbols in annotation arguments,
such as the ones introduced by the names/defaults desugaring.
The first two test cases here motivate the two patches to Unpicker.
The third requires both fixes, but exploits the problem directly,
without using `@deprecated` and named arguments.
See also 14fa7be / SI-8708 for a recently remedied kindred bug.
Diffstat (limited to 'test/files/pos/t8868c')
-rw-r--r-- | test/files/pos/t8868c/Sub_2.scala | 2 | ||||
-rw-r--r-- | test/files/pos/t8868c/T_1.scala | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/t8868c/Sub_2.scala b/test/files/pos/t8868c/Sub_2.scala new file mode 100644 index 0000000000..58b44db2b3 --- /dev/null +++ b/test/files/pos/t8868c/Sub_2.scala @@ -0,0 +1,2 @@ +class Sub extends T + diff --git a/test/files/pos/t8868c/T_1.scala b/test/files/pos/t8868c/T_1.scala new file mode 100644 index 0000000000..dc541950d8 --- /dev/null +++ b/test/files/pos/t8868c/T_1.scala @@ -0,0 +1,9 @@ +class C(a: Any) extends annotation.StaticAnnotation + +@C({val x = 0; x}) +trait T { + class X + + @C({val x = 0; x}) + def foo = 42 +} |