summaryrefslogtreecommitdiff
path: root/test/pending/neg/t6680b.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/neg/t6680b.scala')
-rw-r--r--test/pending/neg/t6680b.scala10
1 files changed, 0 insertions, 10 deletions
diff --git a/test/pending/neg/t6680b.scala b/test/pending/neg/t6680b.scala
deleted file mode 100644
index e9f6468315..0000000000
--- a/test/pending/neg/t6680b.scala
+++ /dev/null
@@ -1,10 +0,0 @@
-trait Super[+A]
-// `Hidden` must occur in both variance positions (covariant/contravariant) for the sneakiness to work
-// this way type inference will infer Any for `Hidden` and `A` in the pattern below
-case class Concrete[Hidden, +A](havoc: Hidden => Hidden) extends Super[A]
-
-object Test extends App {
- (Concrete((x: Int) => x): Super[Any]) match {
- case Concrete(f) => f("not what you'd expect")
- }
-} \ No newline at end of file