[FIR] Implement UNRESOLVED_REFERENCE_WRONG_RECEIVER
This commit is contained in:
+1
-1
@@ -16,6 +16,6 @@ FILE: lambdaAsReceiver.kt
|
||||
fun <anonymous>(): R|kotlin/String| <inline=Unknown> {
|
||||
^ String()
|
||||
}
|
||||
.<Inapplicable(INAPPLICABLE_WRONG_RECEIVER): /bar>#()
|
||||
.<None of the following candidates is applicable because of receiver type mismatch: [/bar]>#()
|
||||
String().R|/bar|()
|
||||
}
|
||||
|
||||
+1
-1
@@ -9,6 +9,6 @@ fun main1() {
|
||||
}
|
||||
|
||||
fun main2() {
|
||||
{ "" }.<!INAPPLICABLE_CANDIDATE!>bar<!>()
|
||||
{ "" }.<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>bar<!>()
|
||||
"".bar()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user