diff options
-rw-r--r-- | test/files/pos/tinondefcons.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/pos/tinondefcons.scala b/test/files/pos/tinondefcons.scala new file mode 100644 index 0000000000..6be6f17a97 --- /dev/null +++ b/test/files/pos/tinondefcons.scala @@ -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") +} |