diff options
author | Heather Miller <heather.miller@epfl.ch> | 2012-05-06 23:30:18 +0200 |
---|---|---|
committer | Heather Miller <heather.miller@epfl.ch> | 2012-05-06 23:30:18 +0200 |
commit | 8d4b5034c0ca2eb97473c0bc5775fe38e44c9df0 (patch) | |
tree | 1a57d7b867902c9c0a08461fe874688b5381b624 /test | |
parent | 7cac6334d4437ff54c4979799574045501f64135 (diff) | |
download | scala-8d4b5034c0ca2eb97473c0bc5775fe38e44c9df0.tar.gz scala-8d4b5034c0ca2eb97473c0bc5775fe38e44c9df0.tar.bz2 scala-8d4b5034c0ca2eb97473c0bc5775fe38e44c9df0.zip |
Test case for SI-1557
Diffstat (limited to 'test')
-rw-r--r-- | test/pending/neg/t1557.scala | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/pending/neg/t1557.scala b/test/pending/neg/t1557.scala new file mode 100644 index 0000000000..ba93b45fad --- /dev/null +++ b/test/pending/neg/t1557.scala @@ -0,0 +1,18 @@ +object Test extends App { + trait A + trait B extends A + + trait C { + trait D { type T >: B <: A } + val y: (D with this.type)#T = new B { } + } + + class D extends C { + trait E + type T = E + def frob(arg : E) : E = arg + frob(y) + } + + new D +}
\ No newline at end of file |