diff options
Diffstat (limited to 'test/files/neg/t3987.scala')
-rw-r--r-- | test/files/neg/t3987.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/neg/t3987.scala b/test/files/neg/t3987.scala new file mode 100644 index 0000000000..1226d80228 --- /dev/null +++ b/test/files/neg/t3987.scala @@ -0,0 +1,13 @@ +class Gox { + object Zed { } + class Zed { } +} + +object Test { + type GoxZed = t#Zed forSome { type t <: Gox } + + def main(args: Array[String]): Unit = { + val x = new Gox + val y: GoxZed = x + } +} |