[FIR] Make UNSAFE_INFIX_CALL and UNSAFE_OPERATOR_CALL parameter nullable

This fixes an NPE in the IDE in presence of a syntax error when the
argument expression has no source.

#KT-64062 Fixed
This commit is contained in:
Kirill Rakhman
2023-12-04 20:56:54 +01:00
committed by Space Team
parent b059754f64
commit 8496722603
13 changed files with 48 additions and 12 deletions
@@ -0,0 +1,3 @@
fun add(a: Int?, b: Int?): Int {
return a<!UNSAFE_OPERATOR_CALL!>+<!><!SYNTAX!><!>
}
@@ -0,0 +1,3 @@
fun add(a: Int?, b: Int?): Int {
return a<!NONE_APPLICABLE!>+<!><!SYNTAX!><!>
}