[NI] Add missing diagnostic on callable references in fake calls

Unresolved reference diagnositc was not reported on callable references
returned from if or when expression because of additional block wrapper.

^KT-30953 Fixed
This commit is contained in:
Pavel Kirpichenkov
2019-11-25 18:26:26 +03:00
parent eb73650209
commit cf82efb49f
6 changed files with 63 additions and 2 deletions
@@ -0,0 +1,9 @@
package
public fun testElvis(/*0*/ x: kotlin.Any?): kotlin.Unit
public fun testExclExcl(): kotlin.Unit
public fun testIf(/*0*/ x: kotlin.Any?): kotlin.Unit
public fun testIfWithBraces(/*0*/ x: kotlin.Any?): kotlin.Unit
public fun testTry(): kotlin.Unit
public fun testWhen(/*0*/ x: kotlin.Any?): kotlin.Unit
public fun testWhenWithBraces(/*0*/ x: kotlin.Any?): kotlin.Unit