Add tests for class hierarchy incremental recompilation

This commit is contained in:
Alexey Tsvetkov
2015-12-17 21:30:17 +03:00
parent e2794cfa3f
commit 9190029fcc
206 changed files with 1602 additions and 3 deletions
@@ -0,0 +1,36 @@
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
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'
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
End of files
Cleaning output files:
out/production/module3/foo/AGrandChild.class
End of files
Compiling files:
module3/src/module3_AGrandChild.kt
module3/src/module3_importAGrandChild.kt
End of files
Compiling files:
module4/src/module4_importAGrandChild.kt
End of files
@@ -0,0 +1,4 @@
module1->
module2->module1[exported]
module3->module2
module4->module3
@@ -0,0 +1,5 @@
package foo
open class A {
open fun f() {}
}
@@ -0,0 +1,5 @@
package foo
private open class A {
open fun f() {}
}
@@ -0,0 +1,5 @@
package foo
open class A {
open fun f() {}
}
@@ -0,0 +1,3 @@
package foo
open class AChild : A()
@@ -0,0 +1,3 @@
package foo
open class AGrandChild : AChild()
@@ -0,0 +1,3 @@
package bar
import foo.AGrandChild
@@ -0,0 +1,3 @@
package bar
import foo.AGrandChild