diff options
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t4036.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/pos/t4036.scala b/test/files/pos/t4036.scala new file mode 100644 index 0000000000..b902a3153b --- /dev/null +++ b/test/files/pos/t4036.scala @@ -0,0 +1,13 @@ +object Error { + def f { + 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() + } +} |