diff options
Diffstat (limited to 'test/files/neg/bounds.scala')
-rw-r--r-- | test/files/neg/bounds.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/neg/bounds.scala b/test/files/neg/bounds.scala new file mode 100644 index 0000000000..f9fbeaa674 --- /dev/null +++ b/test/files/neg/bounds.scala @@ -0,0 +1,12 @@ +class I { + def i(): Unit = {} +} +class J extends I { + def j(): Unit = {} +} +class A[T >: I](init: T) { + var y: T = new B(); + class B() extends I {} +} +class B[T >: J](init: T) extends A[T](init) { +} |