Permalink
Browse files

Test case for SI-2066

  • Loading branch information...
heathermiller committed May 7, 2012
1 parent ea25648 commit 8d23a91c3c1f2d52f7de5622a551efcdf6517f8d
Showing with 16 additions and 0 deletions.
  1. +16 −0 test/pending/neg/t2066.scala
@@ -0,0 +1,16 @@
object Test extends App {
trait A {
def f[T[_]](x : T[Int]) : T[Any]
}
class B extends A {
def f[T[+_]](x : T[Int]) : T[Any] = x
}
class P[Y](var y : Y)
val p = new P(1)
val palias = (new B():A).f[P](p)
palias.y = "hello"
val z: Int = p.y
}

0 comments on commit 8d23a91

Please sign in to comment.