[FIR] Fix missing receiver type if anonymous function without label
This commit is contained in:
+4
-4
@@ -14,11 +14,11 @@ fun test() {
|
||||
}
|
||||
|
||||
fun check() {
|
||||
[1, 2] checkType { <!UNRESOLVED_REFERENCE!>_<!><Array<Int>>() }
|
||||
[""] checkType { <!UNRESOLVED_REFERENCE!>_<!><Array<String>>() }
|
||||
[1, 2] checkType { <!INAPPLICABLE_CANDIDATE!>_<!><Array<Int>>() }
|
||||
[""] checkType { <!INAPPLICABLE_CANDIDATE!>_<!><Array<String>>() }
|
||||
|
||||
val f: IntArray = [1]
|
||||
[f] checkType { <!UNRESOLVED_REFERENCE!>_<!><Array<IntArray>>() }
|
||||
[f] checkType { <!INAPPLICABLE_CANDIDATE!>_<!><Array<IntArray>>() }
|
||||
|
||||
[1, ""] checkType { <!UNRESOLVED_REFERENCE!>_<!><Array<Any>>() }
|
||||
[1, ""] checkType { <!INAPPLICABLE_CANDIDATE!>_<!><Array<Any>>() }
|
||||
}
|
||||
Reference in New Issue
Block a user