We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 716630e + 9dfcfa9 commit 96d02e8Copy full SHA for 96d02e8
tests/init/neg/i10549b.scala
@@ -0,0 +1,9 @@
1
+class Wrap {
2
+ def qux[T](e: E[T]) = e.foo
3
+
4
+ abstract class E[+T] { def foo: T }
5
+ object E {
6
+ final val A: E[Nothing] = new E { def foo = ref }
7
+ val ref = qux(A) // error
8
+ }
9
+}
tests/init/pos/i10549a.scala
@@ -0,0 +1,7 @@
+ class E
+ final val A = new E {}
+ val $values = Array(A)
0 commit comments