Add tests for class hierarchy incremental recompilation
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
open class A
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
open class A private constructor ()
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
open class A
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
class AChild : A()
|
||||
Vendored
+28
@@ -0,0 +1,28 @@
|
||||
Cleaning output files:
|
||||
out/production/module/foo/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/A.kt
|
||||
End of files
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/foo/AChild.class
|
||||
out/production/module/foo/CreateAKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/AChild.kt
|
||||
src/createA.kt
|
||||
End of files
|
||||
COMPILATION FAILED
|
||||
Cannot access '<init>': it is 'private' in 'A'
|
||||
Cannot access '<init>': it is 'private' in 'A'
|
||||
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/foo/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/A.kt
|
||||
src/AChild.kt
|
||||
src/createA.kt
|
||||
End of files
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
fun createA() {
|
||||
A()
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
fun createAChild() {
|
||||
AChild()
|
||||
}
|
||||
Reference in New Issue
Block a user