Files
kotlin-fork/compiler/testData/loadJava/compiledJava/PrivateMembers.fir.txt
T
Roman Golyshev 9b9c51bc8d [FIR] Fix dispatch receivers on inner classes' constructors
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
2021-10-05 12:17:08 +00:00

23 lines
642 B
Plaintext
Vendored

public open class PrivateMembers : R|kotlin/Any| {
private open field field: R|kotlin/Int|
private open static field staticField: R|kotlin/Int|
private open fun method(): R|kotlin/Unit|
private open static fun staticMethod(): R|kotlin/Unit|
private constructor(): R|test/PrivateMembers|
private open inner class Inner : R|kotlin/Any| {
private test/PrivateMembers.constructor(): R|test/PrivateMembers.Inner|
}
private open class Nested : R|kotlin/Any| {
private open static fun staticMethodInNested(): R|kotlin/Unit|
private constructor(): R|test/PrivateMembers.Nested|
}
}