summaryrefslogtreecommitdiff
path: root/test/files/neg/t6597.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-10-31 14:08:29 -0700
committerAdriaan Moors <adriaan.moors@epfl.ch>2012-10-31 15:42:14 -0700
commit1e2328ea6a8b592b5a2abe3557dc633e96f688f2 (patch)
tree9df1a526619025705833eb8a5ca1393c9dfeba5f /test/files/neg/t6597.scala
parent290220bc6f5e1a11e38c67eb3e51ec617f96a1f6 (diff)
downloadscala-1e2328ea6a8b592b5a2abe3557dc633e96f688f2.tar.gz
scala-1e2328ea6a8b592b5a2abe3557dc633e96f688f2.tar.bz2
scala-1e2328ea6a8b592b5a2abe3557dc633e96f688f2.zip
Fix for SI-6597, implicit case class crasher.
It seems to me like every call to scope.lookup in the compiler is a latent bug. If a symbol is overloaded, you get one at random. (See the FIXME comment in f5c336d5660 for more on this.)
Diffstat (limited to 'test/files/neg/t6597.scala')
-rw-r--r--test/files/neg/t6597.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/neg/t6597.scala b/test/files/neg/t6597.scala
new file mode 100644
index 0000000000..dde53bcc89
--- /dev/null
+++ b/test/files/neg/t6597.scala
@@ -0,0 +1,5 @@
+object Test {
+ trait T extends Any
+ implicit case class Quux(value: Int) extends AnyVal with T
+ object Quux
+}