IR: Test for toSkip(this) in T.resolveFakeOverride()

^KT-49371 Fixed
This commit is contained in:
Georgy Bronnikov
2021-10-27 00:21:31 +03:00
parent c67a1ee2e5
commit 534beb8553
10 changed files with 68 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
interface Left
interface Right
class Bottom : Left, Right
interface A<T> {
fun f(): T? {
return null
}
}
interface B<T : Left> : A<T> {}
abstract class C<T> : A<T>
abstract class D<T : Right> : C<T>()
class Z : D<Bottom>(), B<Bottom>
fun box(): String {
Z().f()
return "OK"
}