aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t6258.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t6258.scala')
-rw-r--r--tests/untried/neg/t6258.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/untried/neg/t6258.scala b/tests/untried/neg/t6258.scala
index 19794b325..58236d154 100644
--- a/tests/untried/neg/t6258.scala
+++ b/tests/untried/neg/t6258.scala
@@ -1,10 +1,10 @@
object Test {
- val f : PartialFunction[_, Int] = { case a : Int => a } // undefined param
+ val f : PartialFunction[_, Int] = { case a : Int => a } // undefined param
- def foo[A](pf: PartialFunction[A, Int]): Unit = {};
- foo { case a : Int => a } // undefined param
+ def foo[A](pf: PartialFunction[A, Int]): Unit = {};
+ foo { case a : Int => a } // undefined param
- val g : PartialFunction[Int, _] = { case a : Int => a } // okay
+ val g : PartialFunction[Int, _] = { case a : Int => a } // okay
}