[FIR] Fix FindReferencePositioningStrategy for light tree

There was a problem which causes to lookup for assign token inside
  functions from arguments of call
This commit is contained in:
Dmitriy Novozhilov
2022-03-11 11:38:04 +03:00
committed by teamcity
parent ade2307345
commit 6f64aedaf0
3 changed files with 14 additions and 4 deletions
@@ -14,7 +14,7 @@ fun <T> id(x: T) = x
fun main() {
var newValue = A()
newValue <!ASSIGN_OPERATOR_AMBIGUITY!>+=<!> id { total -> A() }
<!ASSIGN_OPERATOR_AMBIGUITY!>newValue<!> += id(fun(total) = A())
newValue <!ASSIGN_OPERATOR_AMBIGUITY!>+=<!> id(fun(total) = A())
newValue <!ASSIGN_OPERATOR_AMBIGUITY!>+=<!> id(fun(total): A { return A() })
newValue <!ASSIGN_OPERATOR_AMBIGUITY!>+=<!> id(::foo)
}