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 590f720 commit 1552e70Copy full SHA for 1552e70
tests/neg/tcpoly_typealias.scala
@@ -34,7 +34,7 @@ trait BOk4 extends A3 {
34
// does type alias signature (not considering RHS) correspond to abstract type member in super class
35
// does RHS correspond to the type alias sig
36
trait BInv extends A{
37
- type m[x] = FooCov[x] // error: invariant x in alias def
+ type m[x] = FooCov[x] // was an error: invariant x in alias def, now ok, since `FooCov` is covariant
38
}
39
40
trait BCon extends A{
0 commit comments