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:
Denis Zharkov
2020-04-16 15:17:32 +03:00
parent f0d35a2478
commit 706ccb2cf9
6 changed files with 242 additions and 0 deletions
@@ -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
}