9b9c51bc8d
1. Inner class constructor should have its outer class as a dispatch receiver, since it is necessary for the call. Before it was null 2. Substituted inner class constructor should have its original dispatch receiver type with the proper substitution. Before it was set to the class itself (since the class was usually passed as a new dispatch receiver) Also, modify FIR renderer, so it properly renders the dispatch receiver of the constructors
27 lines
1.1 KiB
Plaintext
Vendored
27 lines
1.1 KiB
Plaintext
Vendored
public open class OverrideMethod : R|kotlin/Any| {
|
|
public constructor(): R|test/OverrideMethod|
|
|
|
|
public/*package*/ open inner class Base : R|test/OverrideMethod.SuperBase| {
|
|
public/*package*/ open fun foo(s: R|ft<kotlin/String, kotlin/String?>|): R|ft<kotlin/String, kotlin/String?>|
|
|
|
|
public/*package*/ open fun bar(): R|kotlin/Unit|
|
|
|
|
public/*package*/ test/OverrideMethod.constructor(): R|test/OverrideMethod.Base|
|
|
|
|
}
|
|
public/*package*/ open inner class Derived : R|test/OverrideMethod.Base| {
|
|
@R|java/lang/Override|() public/*package*/ open fun foo(s: R|ft<kotlin/String, kotlin/String?>|): R|ft<kotlin/String, kotlin/String?>|
|
|
|
|
public/*package*/ open fun baz(): R|kotlin/Unit|
|
|
|
|
public/*package*/ test/OverrideMethod.constructor(): R|test/OverrideMethod.Derived|
|
|
|
|
}
|
|
public/*package*/ open inner class SuperBase : R|kotlin/Any| {
|
|
public/*package*/ open fun quux(x: R|kotlin/Int|): R|kotlin/Unit|
|
|
|
|
public/*package*/ test/OverrideMethod.constructor(): R|test/OverrideMethod.SuperBase|
|
|
|
|
}
|
|
}
|