diff options
author | Martin Odersky <odersky@gmail.com> | 2003-06-04 15:14:14 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2003-06-04 15:14:14 +0000 |
commit | c481e95b2f3d0a8cc98b106c971506e102702d06 (patch) | |
tree | 194bb07129be15d1f1e277ab3b0b63f7caf68b8d /test/files/neg/bounds.scala | |
parent | 3a593c580c9a23b3654ea3391fb22afa85db0697 (diff) | |
download | scala-c481e95b2f3d0a8cc98b106c971506e102702d06.tar.gz scala-c481e95b2f3d0a8cc98b106c971506e102702d06.tar.bz2 scala-c481e95b2f3d0a8cc98b106c971506e102702d06.zip |
*** empty log message ***
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) { +} |