summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2012-11-01 09:54:41 -0700
committerAdriaan Moors <adriaan.moors@typesafe.com>2012-11-01 09:54:41 -0700
commit2dd7142401d85badff451a6d3bb15eb84f4e9fa9 (patch)
treed064fe397c6f51fc3c6ab17375b63778a3f4a44d /test/files
parent6f273cb58ba69cc8b30ec9b1b31dc015e0ef1a62 (diff)
parent187c61a0e49c8f880a0599d64955e47e167579dc (diff)
downloadscala-2dd7142401d85badff451a6d3bb15eb84f4e9fa9.tar.gz
scala-2dd7142401d85badff451a6d3bb15eb84f4e9fa9.tar.bz2
scala-2dd7142401d85badff451a6d3bb15eb84f4e9fa9.zip
Merge pull request #1550 from paulp/issue/6597
Fix for SI-6597, implicit case class crasher.
Diffstat (limited to 'test/files')
-rw-r--r--test/files/neg/t6597.check4
-rw-r--r--test/files/neg/t6597.scala5
2 files changed, 9 insertions, 0 deletions
diff --git a/test/files/neg/t6597.check b/test/files/neg/t6597.check
new file mode 100644
index 0000000000..1d52519d1d
--- /dev/null
+++ b/test/files/neg/t6597.check
@@ -0,0 +1,4 @@
+t6597.scala:3: error: illegal combination of modifiers: implicit and case for: class Quux
+ implicit case class Quux(value: Int) extends AnyVal with T
+ ^
+one error found
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
+}