summaryrefslogtreecommitdiff
path: root/test/files/pos/tinondefcons.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2006-02-25 18:09:55 +0000
committerMartin Odersky <odersky@gmail.com>2006-02-25 18:09:55 +0000
commitb2793f349671f884ca38f17b6ef5209a0fbc555a (patch)
tree3b01dd545c4b3288436e25f8e0b4bceca5e79c9c /test/files/pos/tinondefcons.scala
parent45371e87920d3a68dc5cc3c20d4408f6127700f1 (diff)
downloadscala-b2793f349671f884ca38f17b6ef5209a0fbc555a.tar.gz
scala-b2793f349671f884ca38f17b6ef5209a0fbc555a.tar.bz2
scala-b2793f349671f884ca38f17b6ef5209a0fbc555a.zip
Fixed bugs 536 and 537.
Diffstat (limited to 'test/files/pos/tinondefcons.scala')
-rw-r--r--test/files/pos/tinondefcons.scala3
1 files changed, 2 insertions, 1 deletions
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"
}