summaryrefslogtreecommitdiff
path: root/test/files/pos/t7426.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-04-26 20:40:10 -0700
committerPaul Phillips <paulp@improving.org>2013-04-26 22:00:40 -0700
commitdf3cae79e7fb40b24b40bcd7a59cbd6b37247e92 (patch)
treedaa318fdeb777f8c2c64720af360c7ef89fec65b /test/files/pos/t7426.scala
parent0a23852d9b434d7aef734687474b1c3e79881a9b (diff)
downloadscala-df3cae79e7fb40b24b40bcd7a59cbd6b37247e92.tar.gz
scala-df3cae79e7fb40b24b40bcd7a59cbd6b37247e92.tar.bz2
scala-df3cae79e7fb40b24b40bcd7a59cbd6b37247e92.zip
SI-7426 Crash in pickler.
I wonder if the supply of copy-pasted code, and the bugs which always accompany it, will ever run low. Here we have a couple hundred lines of tree traversal which appears roughly identical in structure to a different couple hundred lines of tree traversal, except one calls methods called putXXX and the other calls methods called writeXXX. Except there was one call to writeXXX among all the putXXX calls. Guess where it was crashing. This entire file should be expunged.
Diffstat (limited to 'test/files/pos/t7426.scala')
-rw-r--r--test/files/pos/t7426.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/files/pos/t7426.scala b/test/files/pos/t7426.scala
new file mode 100644
index 0000000000..8e42ad1812
--- /dev/null
+++ b/test/files/pos/t7426.scala
@@ -0,0 +1,3 @@
+class foo(x: Any) extends annotation.StaticAnnotation
+
+@foo(new AnyRef { }) trait A