Add incremental tests for parameters with default values
This commit is contained in:
+38
@@ -0,0 +1,38 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module1/foo/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
module1/src/module1_A.kt
|
||||
End of files
|
||||
Marked as dirty by Kotlin:
|
||||
module2/src/module2_createADefault.kt
|
||||
module2/src/module2_createANonDefault.kt
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Exit code: NOTHING_DONE
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module2/META-INF/module2.kotlin_module
|
||||
out/production/module2/foo/Module2_createADefaultKt.class
|
||||
out/production/module2/foo/Module2_createANonDefaultKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
module2/src/module2_createADefault.kt
|
||||
module2/src/module2_createANonDefault.kt
|
||||
End of files
|
||||
Exit code: ABORT
|
||||
------------------------------------------
|
||||
COMPILATION FAILED
|
||||
Too many arguments for public constructor A() defined in foo.A
|
||||
|
||||
================ Step #2 =================
|
||||
|
||||
Exit code: NOTHING_DONE
|
||||
------------------------------------------
|
||||
Compiling files:
|
||||
module2/src/module2_createADefault.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
module1->
|
||||
module2->module1
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
class A(x: Int = 10)
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
class A()
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
fun createADefault() {
|
||||
A()
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
fun createANonDefault() {
|
||||
A(20)
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module1/foo/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
module1/src/module1_A.kt
|
||||
End of files
|
||||
Marked as dirty by Kotlin:
|
||||
module2/src/module2_createADefault.kt
|
||||
module2/src/module2_createANonDefault.kt
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Exit code: NOTHING_DONE
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module2/META-INF/module2.kotlin_module
|
||||
out/production/module2/foo/Module2_createADefaultKt.class
|
||||
out/production/module2/foo/Module2_createANonDefaultKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
module2/src/module2_createADefault.kt
|
||||
module2/src/module2_createANonDefault.kt
|
||||
End of files
|
||||
Exit code: ABORT
|
||||
------------------------------------------
|
||||
COMPILATION FAILED
|
||||
No value passed for parameter x
|
||||
|
||||
================ Step #2 =================
|
||||
|
||||
Exit code: NOTHING_DONE
|
||||
------------------------------------------
|
||||
Compiling files:
|
||||
module2/src/module2_createANonDefault.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
module1->
|
||||
module2->module1
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
class A(x: Int = 10)
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
class A(x: Int)
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
fun createADefault() {
|
||||
A()
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
fun createANonDefault() {
|
||||
A(20)
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
open class A()
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
open class A(x: Int = 10)
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
open class B() : A()
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
class C : B()
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/foo/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/A.kt
|
||||
End of files
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/foo/B.class
|
||||
out/production/module/foo/C.class
|
||||
out/production/module/foo/CreateAKt.class
|
||||
out/production/module/foo/CreateBKt.class
|
||||
out/production/module/foo/UseAKt.class
|
||||
out/production/module/foo/UseBKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/B.kt
|
||||
src/C.kt
|
||||
src/createA.kt
|
||||
src/createB.kt
|
||||
src/useA.kt
|
||||
src/useB.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
fun createADefault() {
|
||||
A()
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
fun createB() {
|
||||
B()
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/foo/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/A.kt
|
||||
End of files
|
||||
Marked as dirty by Kotlin:
|
||||
src/B.kt
|
||||
src/createA.kt
|
||||
src/useA.kt
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/foo/B.class
|
||||
out/production/module/foo/CreateAKt.class
|
||||
out/production/module/foo/UseAKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/B.kt
|
||||
src/createA.kt
|
||||
src/useA.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
fun useA(a: A) {}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
fun useB(b: B) {}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
open class A(x: Int = 10)
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
open class A()
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
open class B() : A()
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
class C : B()
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/foo/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/A.kt
|
||||
End of files
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/foo/B.class
|
||||
out/production/module/foo/C.class
|
||||
out/production/module/foo/CreateADefaultKt.class
|
||||
out/production/module/foo/CreateANonDefaultKt.class
|
||||
out/production/module/foo/CreateBKt.class
|
||||
out/production/module/foo/UseAKt.class
|
||||
out/production/module/foo/UseBKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/B.kt
|
||||
src/C.kt
|
||||
src/createADefault.kt
|
||||
src/createANonDefault.kt
|
||||
src/createB.kt
|
||||
src/useA.kt
|
||||
src/useB.kt
|
||||
End of files
|
||||
Exit code: ABORT
|
||||
------------------------------------------
|
||||
COMPILATION FAILED
|
||||
Too many arguments for public constructor A() defined in foo.A
|
||||
|
||||
================ Step #2 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/foo/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/A.kt
|
||||
src/B.kt
|
||||
src/C.kt
|
||||
src/createADefault.kt
|
||||
src/createB.kt
|
||||
src/useA.kt
|
||||
src/useB.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
fun createADefault() {
|
||||
A()
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
fun createANonDefault() {
|
||||
A(10)
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
fun createB() {
|
||||
B()
|
||||
}
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/foo/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/A.kt
|
||||
End of files
|
||||
Marked as dirty by Kotlin:
|
||||
src/B.kt
|
||||
src/createADefault.kt
|
||||
src/createANonDefault.kt
|
||||
src/useA.kt
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/foo/B.class
|
||||
out/production/module/foo/CreateADefaultKt.class
|
||||
out/production/module/foo/CreateANonDefaultKt.class
|
||||
out/production/module/foo/UseAKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/B.kt
|
||||
src/createADefault.kt
|
||||
src/createANonDefault.kt
|
||||
src/useA.kt
|
||||
End of files
|
||||
Exit code: ABORT
|
||||
------------------------------------------
|
||||
COMPILATION FAILED
|
||||
Too many arguments for public constructor A() defined in foo.A
|
||||
|
||||
================ Step #2 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/foo/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/A.kt
|
||||
src/B.kt
|
||||
src/createADefault.kt
|
||||
src/useA.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
fun useA(a: A) {}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
fun useB(b: B) {}
|
||||
@@ -1,3 +0,0 @@
|
||||
fun a(p1: String, p2: String? = null) {
|
||||
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
fun b(p1: String, p2: String? = null) {
|
||||
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
+3
-3
@@ -1,11 +1,11 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/AKt.class
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/foo/FunKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/a.kt
|
||||
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()
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
fun useNonDefault() {
|
||||
f(15)
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package foo
|
||||
|
||||
open class A(x: Int)
|
||||
|
||||
// The use of annotation here is intentional, so no change for "fun A" is detected,
|
||||
// but after adding default value to A constructor, we want to force resolve to the constructor
|
||||
@Deprecated("Warning", level = DeprecationLevel.WARNING)
|
||||
fun A() = A(30)
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package foo
|
||||
|
||||
open class A(x: Int = 10)
|
||||
|
||||
// The use of annotation here is intentional, so no change for "fun A" is detected,
|
||||
// but after adding default value to A constructor, we want to force resolve to the constructor
|
||||
@Deprecated("Hidden", level = DeprecationLevel.HIDDEN)
|
||||
fun A() = A(30)
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
open class B() : A(20)
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
class C : B()
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/foo/A.class
|
||||
out/production/module/foo/AKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/A.kt
|
||||
End of files
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/foo/B.class
|
||||
out/production/module/foo/C.class
|
||||
out/production/module/foo/CreateADefaultKt.class
|
||||
out/production/module/foo/CreateANonDefaultKt.class
|
||||
out/production/module/foo/CreateBKt.class
|
||||
out/production/module/foo/UseAKt.class
|
||||
out/production/module/foo/UseBKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/B.kt
|
||||
src/C.kt
|
||||
src/createADefault.kt
|
||||
src/createANonDefault.kt
|
||||
src/createB.kt
|
||||
src/useA.kt
|
||||
src/useB.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
fun createADefault() {
|
||||
A()
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
fun createANonDefault() {
|
||||
A(15)
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
fun createB() {
|
||||
B()
|
||||
}
|
||||
Vendored
+32
@@ -0,0 +1,32 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/foo/A.class
|
||||
out/production/module/foo/AKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/A.kt
|
||||
End of files
|
||||
Marked as dirty by Kotlin:
|
||||
src/B.kt
|
||||
src/createADefault.kt
|
||||
src/createANonDefault.kt
|
||||
src/useA.kt
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/foo/B.class
|
||||
out/production/module/foo/CreateADefaultKt.class
|
||||
out/production/module/foo/CreateANonDefaultKt.class
|
||||
out/production/module/foo/UseAKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/B.kt
|
||||
src/createADefault.kt
|
||||
src/createANonDefault.kt
|
||||
src/useA.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
fun useA(a: A) {}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
fun useB(b: B) {}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
open class A(x: Int = 10)
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
open class A(x: Int = 11)
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
open class B() : A(20)
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
class C : B()
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/foo/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/A.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
fun createADefault() {
|
||||
A()
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
fun createANonDefault() {
|
||||
A(15)
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
fun createB() {
|
||||
B()
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
fun useA(a: A) {}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
fun useB(b: B) {}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
open class A(x: Int = 10)
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
open class A(x: Int)
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
open class B() : A()
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
class C : B()
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/foo/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/A.kt
|
||||
End of files
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/foo/B.class
|
||||
out/production/module/foo/C.class
|
||||
out/production/module/foo/CreateADefaultKt.class
|
||||
out/production/module/foo/CreateANonDefaultKt.class
|
||||
out/production/module/foo/CreateBKt.class
|
||||
out/production/module/foo/UseAKt.class
|
||||
out/production/module/foo/UseBKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/B.kt
|
||||
src/C.kt
|
||||
src/createADefault.kt
|
||||
src/createANonDefault.kt
|
||||
src/createB.kt
|
||||
src/useA.kt
|
||||
src/useB.kt
|
||||
End of files
|
||||
Exit code: ABORT
|
||||
------------------------------------------
|
||||
COMPILATION FAILED
|
||||
No value passed for parameter x
|
||||
No value passed for parameter x
|
||||
|
||||
================ Step #2 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/foo/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/A.kt
|
||||
src/B.kt
|
||||
src/C.kt
|
||||
src/createADefault.kt
|
||||
src/createANonDefault.kt
|
||||
src/createB.kt
|
||||
src/useA.kt
|
||||
src/useB.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
fun createADefault() {
|
||||
A()
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
fun createANonDefault() {
|
||||
A(10)
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
fun createB() {
|
||||
B()
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/foo/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/A.kt
|
||||
End of files
|
||||
Marked as dirty by Kotlin:
|
||||
src/B.kt
|
||||
src/createADefault.kt
|
||||
src/createANonDefault.kt
|
||||
src/useA.kt
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/foo/B.class
|
||||
out/production/module/foo/CreateADefaultKt.class
|
||||
out/production/module/foo/CreateANonDefaultKt.class
|
||||
out/production/module/foo/UseAKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/B.kt
|
||||
src/createADefault.kt
|
||||
src/createANonDefault.kt
|
||||
src/useA.kt
|
||||
End of files
|
||||
Exit code: ABORT
|
||||
------------------------------------------
|
||||
COMPILATION FAILED
|
||||
No value passed for parameter x
|
||||
No value passed for parameter x
|
||||
|
||||
================ Step #2 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/foo/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/A.kt
|
||||
src/B.kt
|
||||
src/createADefault.kt
|
||||
src/createANonDefault.kt
|
||||
src/useA.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
fun useA(a: A) {}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
fun useB(b: B) {}
|
||||
@@ -0,0 +1,40 @@
|
||||
================ 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: ABORT
|
||||
------------------------------------------
|
||||
COMPILATION FAILED
|
||||
No value passed for parameter x
|
||||
|
||||
================ Step #2 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/test/FunKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/fun.kt
|
||||
src/other.kt
|
||||
src/useDefault.kt
|
||||
src/useNonDefault.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
================ 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: ABORT
|
||||
------------------------------------------
|
||||
COMPILATION FAILED
|
||||
No value passed for parameter x
|
||||
|
||||
================ Step #2 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/test/FunKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/fun.kt
|
||||
src/useDefault.kt
|
||||
src/useNonDefault.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
fun f(x: Int = 1) {
|
||||
println(x)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
fun f(x: Int) {
|
||||
println(x)
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package other
|
||||
|
||||
fun other() {}
|
||||
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
fun useDefault() {
|
||||
f()
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
fun useDefault() {
|
||||
f(5)
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
fun useNonDefault() {
|
||||
f(10)
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
================ 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/UseDefault1Kt.class
|
||||
out/production/module/test/UseDefault2Kt.class
|
||||
out/production/module/test/UseNonDefaultKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/other.kt
|
||||
src/useDefault1.kt
|
||||
src/useDefault2.kt
|
||||
src/useNonDefault.kt
|
||||
End of files
|
||||
Exit code: ABORT
|
||||
------------------------------------------
|
||||
COMPILATION FAILED
|
||||
No value passed for parameter y
|
||||
No value passed for parameter y
|
||||
|
||||
================ Step #2 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/test/FunKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/fun.kt
|
||||
src/other.kt
|
||||
src/useDefault1.kt
|
||||
src/useDefault2.kt
|
||||
src/useNonDefault.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
================ 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/useDefault1.kt
|
||||
src/useDefault2.kt
|
||||
src/useNonDefault.kt
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/test/UseDefault1Kt.class
|
||||
out/production/module/test/UseDefault2Kt.class
|
||||
out/production/module/test/UseNonDefaultKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/useDefault1.kt
|
||||
src/useDefault2.kt
|
||||
src/useNonDefault.kt
|
||||
End of files
|
||||
Exit code: ABORT
|
||||
------------------------------------------
|
||||
COMPILATION FAILED
|
||||
No value passed for parameter y
|
||||
No value passed for parameter y
|
||||
|
||||
================ Step #2 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/test/FunKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/fun.kt
|
||||
src/useDefault1.kt
|
||||
src/useDefault2.kt
|
||||
src/useNonDefault.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
fun f(x: Int = 1, y: Int = 2) {
|
||||
println("f(x=$x, y=$y)")
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
fun f(x: Int = 1, y: Int) {
|
||||
println("f(x=$x, y=$y)")
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package other
|
||||
|
||||
fun other() {}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
fun useDefault1() {
|
||||
f()
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
fun useDefault1() {
|
||||
f(y=6)
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
fun useDefault2() {
|
||||
f(5)
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
fun useDefault2() {
|
||||
f(5, 6)
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
fun useNonDefault() {
|
||||
f(10, 20)
|
||||
}
|
||||
Reference in New Issue
Block a user