Move JVM specific IC tests to separate dir
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
fun a() = "a"
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
fun b() = "b"
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
@file:JvmName("B")
|
||||
package test
|
||||
|
||||
fun b() = "b"
|
||||
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/test/BKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/b.kt
|
||||
End of files
|
||||
Marked as dirty by Kotlin:
|
||||
src/usage.kt
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/test/UsageKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/usage.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package other
|
||||
|
||||
fun other() = "other"
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
println(a() + b() + other.other())
|
||||
}
|
||||
+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()
|
||||
+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
|
||||
------------------------------------------
|
||||
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) {}
|
||||
Reference in New Issue
Block a user