git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@5829 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
f0cd1a119c
commit
0955ed1d40
|
@ -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")
|
||||
}
|
Loading…
Reference in New Issue