Add incremental tests for parameters with default values

This commit is contained in:
Alexey Tsvetkov
2016-03-09 14:17:20 +03:00
parent d6506d9770
commit d352905a72
109 changed files with 1128 additions and 15 deletions
@@ -0,0 +1,11 @@
================ Step #1 =================
Cleaning output files:
out/production/module/META-INF/module.kotlin_module
out/production/module/foo/FunKt.class
End of files
Compiling files:
src/fun.kt
End of files
Exit code: OK
------------------------------------------
@@ -0,0 +1,3 @@
package foo
fun f(x: Int = 10) {}
@@ -0,0 +1,3 @@
package foo
fun f(x: Int = 20) {}
@@ -0,0 +1,5 @@
package foo
fun useDefault() {
f()
}
@@ -0,0 +1,5 @@
package foo
fun useNonDefault() {
f(15)
}