diff options
Diffstat (limited to 'tests/untried/pos/t4036.scala')
-rw-r--r-- | tests/untried/pos/t4036.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/untried/pos/t4036.scala b/tests/untried/pos/t4036.scala new file mode 100644 index 000000000..06486df0f --- /dev/null +++ b/tests/untried/pos/t4036.scala @@ -0,0 +1,13 @@ +object Error { + def f: Unit = { + case class X(b: Boolean = false) + val r = X() + } + def g = { + val x = 0 + var y = 1 // no constant type + def foo(z: Int = y) = 1 + val z = 2 + foo() + } +} |