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.
1 parent 043d517 commit 89adb4bCopy full SHA for 89adb4b
tests/neg/i6205.check
@@ -0,0 +1,6 @@
1
+-- [E057] Type Mismatch Error: tests/neg/i6205.scala:4:9 ---------------------------------------------------------------
2
+4 | def foo = // error
3
+ | ^
4
+ | Type argument Nothing does not conform to lower bound Null in inferred type Contra[Nothing]
5
+
6
+longer explanation available when compiling with `-explain`
tests/neg/i6205.scala
@@ -0,0 +1,8 @@
+class Contra[-T >: Null]
+object Test:
+ def foo = // error
+ class A
+ new Contra[A]
7
8
+ val x = foo
0 commit comments