FIR: add test for KT-50969

This commit is contained in:
Mikhail Glukhikh
2022-01-26 15:48:34 +03:00
committed by TeamCityServer
parent 37c6b1c2dc
commit 1137e61fc8
6 changed files with 96 additions and 0 deletions
@@ -0,0 +1,28 @@
FILE: Impl.kt
public abstract class Impl : R|Base| {
public constructor(): R|Impl| {
super<R|kotlin/Any|>()
}
public open override fun foo(name: R|kotlin/String|): R|Base| {
^foo this@R|/Impl|
}
}
FILE: test.kt
public abstract class ImplDerived : R|Impl|, R|Derived| {
public constructor(): R|ImplDerived| {
super<R|Impl|>()
}
public abstract override fun foo(name: R|kotlin/String?|): R|Derived|
}
public abstract class DerivedImpl : R|Derived|, R|Impl| {
public constructor(): R|DerivedImpl| {
super<R|Impl|>()
}
public abstract override fun foo(name: R|kotlin/String?|): R|Derived|
}