Recompile subtypes when class member is changed

Original commit: a474165a8f
This commit is contained in:
Alexey Tsvetkov
2016-01-22 15:47:35 +03:00
parent 26debc1dec
commit 08e62d3303
24 changed files with 127 additions and 5 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