Recompile subtypes when class member is changed

This commit is contained in:
Alexey Tsvetkov
2016-01-22 15:47:35 +03:00
parent 4296b7f882
commit a474165a8f
25 changed files with 153 additions and 7 deletions
@@ -0,0 +1,3 @@
open class A {
open fun f(c: C<Any>) {}
}
@@ -0,0 +1,3 @@
open class A {
open fun f(c: C<Any?>) {}
}
@@ -0,0 +1,3 @@
open class A {
open fun f(c: C<Any>) {}
}
@@ -0,0 +1,3 @@
class B : A() {
override fun f(c: C<Any>) {}
}
@@ -0,0 +1 @@
class C<out T>
@@ -0,0 +1,23 @@
Cleaning output files:
out/production/module/A.class
End of files
Compiling files:
src/A.kt
End of files
Cleaning output files:
out/production/module/B.class
End of files
Compiling files:
src/B.kt
End of files
COMPILATION FAILED
'f' overrides nothing
Cleaning output files:
out/production/module/A.class
End of files
Compiling files:
src/A.kt
src/B.kt
End of files