Add incremental tests for parameters with default values
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/test/FunKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/fun.kt
|
||||
End of files
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/other/OtherKt.class
|
||||
out/production/module/test/UseDefaultKt.class
|
||||
out/production/module/test/UseNonDefaultKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/other.kt
|
||||
src/useDefault.kt
|
||||
src/useNonDefault.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/test/FunKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/fun.kt
|
||||
End of files
|
||||
Marked as dirty by Kotlin:
|
||||
src/useDefault.kt
|
||||
src/useNonDefault.kt
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/test/UseDefaultKt.class
|
||||
out/production/module/test/UseNonDefaultKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/useDefault.kt
|
||||
src/useNonDefault.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
fun f(x: Any) {
|
||||
println("f(x: Any)")
|
||||
}
|
||||
|
||||
fun f(x: Int, y: Int) {
|
||||
println("f(x=$x, y=$y)")
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
fun f(x: Any) {
|
||||
println("f(x: Any)")
|
||||
}
|
||||
|
||||
fun f(x: Int, y: Int = 2) {
|
||||
println("f(x=$x, y=$y)")
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package other
|
||||
|
||||
fun other() {}
|
||||
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
fun useDefault1() {
|
||||
f(10)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
fun useNonDefault() {
|
||||
f(10, 20)
|
||||
}
|
||||
Reference in New Issue
Block a user