diff options
Diffstat (limited to 'tests/untried/neg/t5543.scala')
-rw-r--r-- | tests/untried/neg/t5543.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/untried/neg/t5543.scala b/tests/untried/neg/t5543.scala index 4e03e6e11..8fa4ef36f 100644 --- a/tests/untried/neg/t5543.scala +++ b/tests/untried/neg/t5543.scala @@ -1,19 +1,19 @@ class C1 { type T - def this(x: T) { this() } + def this(x: T) = { this() } } class C1a[T] { - def this(x: T) { this() } // works, no error here + def this(x: T) = { this() } // works, no error here } class C2(x: Int) { - def this(a: Int, b: Int = x) { + def this(a: Int, b: Int = x) = { this(b) } } class C3 { val x = 0 - def this(a: Int = x) { this() } + def this(a: Int = x) = { this() } } |