Add tests for class hierarchy incremental recompilation
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
Cleaning output files:
|
||||
out/production/module1/foo/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
module1/src/module1_A.kt
|
||||
End of files
|
||||
Cleaning output files:
|
||||
out/production/module2/foo/AChild.class
|
||||
End of files
|
||||
Compiling files:
|
||||
module2/src/module2_AChild.kt
|
||||
module2/src/module2_importA.kt
|
||||
End of files
|
||||
COMPILATION FAILED
|
||||
Cannot access 'A': it is 'private' in file
|
||||
Subclass effective visibility 'public' should be the same or less permissive than its superclass effective visibility 'private'
|
||||
Cannot access 'A': it is 'private' in file
|
||||
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module1/foo/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
module1/src/module1_A.kt
|
||||
End of files
|
||||
Compiling files:
|
||||
module2/src/module2_AChild.kt
|
||||
module2/src/module2_importA.kt
|
||||
End of files
|
||||
Compiling files:
|
||||
module3/src/module3_importAChild.kt
|
||||
End of files
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
module1->
|
||||
module2->module1
|
||||
module3->module2
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
open class A {
|
||||
open fun f() {}
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
private open class A {
|
||||
open fun f() {}
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
open class A {
|
||||
open fun f() {}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
open class AChild : A()
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package bar
|
||||
|
||||
import foo.A
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package bar
|
||||
|
||||
import foo.AChild
|
||||
Reference in New Issue
Block a user