aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i1255.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/neg/i1255.scala')
-rw-r--r--tests/neg/i1255.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/neg/i1255.scala b/tests/neg/i1255.scala
new file mode 100644
index 000000000..3bb7e8f25
--- /dev/null
+++ b/tests/neg/i1255.scala
@@ -0,0 +1,6 @@
+object Test {
+ def foo(x: Option[Int]) = x match {
+ case Some(_: Double) => true // error
+ case None => true
+ }
+}