ae902e6fe5
Previously the callee reference of a delegated constructor call is always the same as the call itself. This violates the contract that no two FIR elements can have identical sources. In addition, this sets the entire call expression as the source of the callee expression. This change instead sets the proper constructor ref as the callee. Also fixed EXPLICIT_DELEGATION_CALL_REQUIRED type. It should be an error instead of a warning.
5 lines
115 B
Kotlin
Vendored
5 lines
115 B
Kotlin
Vendored
class Outer { inner class Inner }
|
|
fun test() {
|
|
val x = object : <!UNRESOLVED_REFERENCE!>Outer.Inner<!>() { }
|
|
}
|