From b2793f349671f884ca38f17b6ef5209a0fbc555a Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sat, 25 Feb 2006 18:09:55 +0000 Subject: Fixed bugs 536 and 537. --- test/files/pos/tinondefcons.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/files/pos/tinondefcons.scala b/test/files/pos/tinondefcons.scala index 6be6f17a97..5e56417109 100644 --- a/test/files/pos/tinondefcons.scala +++ b/test/files/pos/tinondefcons.scala @@ -3,10 +3,11 @@ class Atom[T](b: Boolean) { + var elem: T = _; def this(s: T) = this(true) } object AtomTest { - val x = new Atom("hello") + new Atom("hello").elem = "abc" } -- cgit v1.2.3