From 09e15bdcbc4a9b4bb67c8f0651fd37539748f7cd Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 26 Dec 2016 14:50:06 +0700 Subject: Move test into the right directory --- tests/neg/i1716.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/neg/i1716.scala (limited to 'tests/neg') diff --git a/tests/neg/i1716.scala b/tests/neg/i1716.scala new file mode 100644 index 000000000..1a3fd71d0 --- /dev/null +++ b/tests/neg/i1716.scala @@ -0,0 +1,9 @@ +object Fail { + def f(m: Option[Int]): Unit = { + m match { + case x @ Some[_] => // error + case _ => + } + } + Some[_] // error +} -- cgit v1.2.3