diff options
Diffstat (limited to 'tests/pos/desugar.scala')
-rw-r--r-- | tests/pos/desugar.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/pos/desugar.scala b/tests/pos/desugar.scala new file mode 100644 index 000000000..ffd114652 --- /dev/null +++ b/tests/pos/desugar.scala @@ -0,0 +1,13 @@ +object desugar { + + // variables + var x: Int = 2 + var y = x * x + + { var z: Int = y } + + def foo0(first: Int, second: Int = 2, third: Int = 3) = first + second + def foo1(first: Int, second: Int = 2)(third: Int = 3) = first + second + def foo2(first: Int)(second: Int = 2)(third: Int = 3) = first + second + +}
\ No newline at end of file |