Skip to content

Commit 1552e70

Browse files
committed
Fix test
1 parent 590f720 commit 1552e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/neg/tcpoly_typealias.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ trait BOk4 extends A3 {
3434
// does type alias signature (not considering RHS) correspond to abstract type member in super class
3535
// does RHS correspond to the type alias sig
3636
trait BInv extends A{
37-
type m[x] = FooCov[x] // error: invariant x in alias def
37+
type m[x] = FooCov[x] // was an error: invariant x in alias def, now ok, since `FooCov` is covariant
3838
}
3939

4040
trait BCon extends A{

0 commit comments

Comments
 (0)