summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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"
}