diff options
author | Martin Odersky <odersky@gmail.com> | 2013-12-05 16:51:31 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-12-05 16:51:31 +0100 |
commit | cd28a05fa16b5b2cf3569f0ab0a8c9c685e41bf1 (patch) | |
tree | e129ea30724491d72d9b27cc6a3d546fa83afd6d /tests/pos/desugar.scala | |
parent | c2f101a33ea7f89681d6b74731bbcff948e7e6da (diff) | |
download | dotty-cd28a05fa16b5b2cf3569f0ab0a8c9c685e41bf1.tar.gz dotty-cd28a05fa16b5b2cf3569f0ab0a8c9c685e41bf1.tar.bz2 dotty-cd28a05fa16b5b2cf3569f0ab0a8c9c685e41bf1.zip |
Fixes to named and default arguments.
Now come with test cases.
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 |