diff options
Diffstat (limited to 'test/files/neg/t2336.scala')
-rwxr-xr-x | test/files/neg/t2336.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/t2336.scala b/test/files/neg/t2336.scala new file mode 100755 index 0000000000..4cea02b721 --- /dev/null +++ b/test/files/neg/t2336.scala @@ -0,0 +1,7 @@ +// we get now: t2336.scala:5: error: type Foo[Int] is not a stable prefix +class Foo[A] { + class Bar[B >: A](x: B) extends Foo[B] +} +object bug { + new Foo[Int]#Bar(0) +} |