From a7991b7024f1f9650bf40d39743365b8f23336e9 Mon Sep 17 00:00:00 2001 From: Lex Spoon Date: Thu, 23 Feb 2006 11:53:03 +0000 Subject: --- test/files/pos/tinondefcons.scala | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/files/pos/tinondefcons.scala (limited to 'test') 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") +} -- cgit v1.2.3