aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/value-class-partial-func-depmet.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/run/value-class-partial-func-depmet.scala')
-rw-r--r--tests/pending/run/value-class-partial-func-depmet.scala24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/pending/run/value-class-partial-func-depmet.scala b/tests/pending/run/value-class-partial-func-depmet.scala
deleted file mode 100644
index f8d2a16e7..000000000
--- a/tests/pending/run/value-class-partial-func-depmet.scala
+++ /dev/null
@@ -1,24 +0,0 @@
-class C
-class A { class C }
-
-object Test {
- def main(args: Array[String]): Unit = {
- val a = new A
-
- new VC("").foo(a)
- }
-}
-
-class VC(val a: Any) extends AnyVal {
- def foo(a: A) = {
- val pf: PartialFunction[a.C, Any] = { case x => x }
- (pf: PartialFunction[Null, Any]).isDefinedAt(null)
- }
-}
-
-// 2.11.0-M6
-// test/files/run/value-class-partial-func-depmet.scala:14: error: overriding method applyOrElse in trait PartialFunction of type [A1 <: a.C, B1 >: Any](x: A1, default: A1 => B1)B1;
-// method applyOrElse has incompatible type
-// val pf: PartialFunction[a.C, Any] = { case x => x }
-// ^
-// one error found