FIR: Adjust testData for spec tests: invoke on nullable receiver
It's a design problem, see related issue ^KT-30415
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
class A {
|
||||
operator fun invoke() {}
|
||||
}
|
||||
|
||||
class B {
|
||||
val bar: () -> Unit = {}
|
||||
val foo: A = A()
|
||||
}
|
||||
|
||||
fun main(b: B?) {
|
||||
b?.bar() // allowed in FIR, prohibited in old FE
|
||||
b?.foo() // allowed in FIR, prohibited in old FE
|
||||
}
|
||||
Reference in New Issue
Block a user