[FIR] Fix NO_RECEIVER_ALLOWED
If we do create an implicit invoke call, and then put the receiver into the argument list, we should mark it.
This commit is contained in:
committed by
Space Team
parent
eb11901d43
commit
9b786d35f8
Vendored
+1
-1
@@ -7,5 +7,5 @@ fun test1(f: String.() -> Unit) {
|
||||
fun test2(f: (Int) -> Int) {
|
||||
1.<!UNRESOLVED_REFERENCE!>f<!>(2)
|
||||
|
||||
2.(f)(<!TOO_MANY_ARGUMENTS!>2<!>)
|
||||
<!NO_RECEIVER_ALLOWED!>2.(f)(<!TOO_MANY_ARGUMENTS!>2<!>)<!>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user