git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@5829 5e8d7ff9-d8ef-0310-90f0-a4852d11357a

This commit is contained in:
spoon 2006-02-23 11:53:03 +00:00
parent f0cd1a119c
commit 0955ed1d40
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
// Tests instantiating a type parameter when a non-default
// constructor is used.
class Atom[T](b: Boolean) {
def this(s: T) = this(true)
}
object AtomTest {
val x = new Atom("hello")
}