Move JVM specific IC tests with class hierarchy changes

This commit is contained in:
Alexey Tsvetkov
2017-07-13 08:06:16 +03:00
parent e16c5ddb97
commit 0a5fe3ef7c
50 changed files with 60 additions and 30 deletions
@@ -0,0 +1,11 @@
open class A {
companion object {
@JvmStatic
fun f() {}
@JvmStatic
fun g() {}
}
fun h() {}
}
@@ -0,0 +1,3 @@
class AChild : A() {
fun j() {}
}
@@ -0,0 +1,3 @@
class AChild {
fun j() {}
}
@@ -0,0 +1,4 @@
@file:JvmName("A")
@file:JvmMultifileClass
fun f() {}
@@ -0,0 +1,4 @@
@file:JvmName("A")
@file:JvmMultifileClass
fun g() {}
@@ -0,0 +1,56 @@
================ Step #1 =================
Cleaning output files:
out/production/module/A$Companion.class
out/production/module/A.class
End of files
Cleaning output files:
out/production/module/AChild.class
out/production/module/GetAKt.class
out/production/module/META-INF/module.kotlin_module
out/production/module/UseFKt.class
out/production/module/UseGKt.class
out/production/module/UseHKt.class
End of files
Compiling files:
src/AChild.kt
src/APartF.kt
src/APartG.kt
src/getA.kt
src/useF.kt
src/useG.kt
src/useH.kt
End of files
Exit code: ABORT
------------------------------------------
COMPILATION FAILED
Unresolved reference: A
Unresolved reference: A
Unresolved reference: A
Unresolved reference: A
================ Step #2 =================
Compiling files:
src/AChild.kt
src/APartF.kt
src/APartG.kt
src/useF.kt
src/useG.kt
End of files
Marked as dirty by Kotlin:
src/getAChild.kt
src/useJ.kt
Exit code: ADDITIONAL_PASS_REQUIRED
------------------------------------------
Cleaning output files:
out/production/module/GetAChildKt.class
out/production/module/META-INF/module.kotlin_module
out/production/module/UseJKt.class
End of files
Compiling files:
src/getAChild.kt
src/useJ.kt
End of files
Exit code: OK
------------------------------------------
@@ -0,0 +1 @@
fun getA() = A()
@@ -0,0 +1 @@
fun getAChild() = AChild()
@@ -0,0 +1,3 @@
fun useF() {
A.f()
}
@@ -0,0 +1,3 @@
fun useF() {
f()
}
@@ -0,0 +1,3 @@
fun useG() {
A.g()
}
@@ -0,0 +1,3 @@
fun useG() {
g()
}
@@ -0,0 +1,3 @@
fun useH() {
getA().h()
}
@@ -0,0 +1,3 @@
fun useJ() {
getAChild().j()
}