[FIR-TEST] Add test with unresolved invoke of lambda with receiver
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
interface A
|
||||
|
||||
fun test(a: A, block: A.() -> Int) {
|
||||
a.<!UNRESOLVED_REFERENCE!>block<!>()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
FILE: invokeOfLambdaWithReceiver.kt
|
||||
public abstract interface A : R|kotlin/Any| {
|
||||
}
|
||||
public final fun test(a: R|A|, block: R|A.() -> kotlin/Int|): R|kotlin/Unit| {
|
||||
R|<local>/a|.<Unresolved name: block>#()
|
||||
}
|
||||
+5
@@ -873,6 +873,11 @@ public class FirDiagnosticsTestGenerated extends AbstractFirDiagnosticsTest {
|
||||
runTest("compiler/fir/resolve/testData/resolve/problems/asImports.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invokeOfLambdaWithReceiver.kt")
|
||||
public void testInvokeOfLambdaWithReceiver() throws Exception {
|
||||
runTest("compiler/fir/resolve/testData/resolve/problems/invokeOfLambdaWithReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("javaAccessorConversion.kt")
|
||||
public void testJavaAccessorConversion() throws Exception {
|
||||
runTest("compiler/fir/resolve/testData/resolve/problems/javaAccessorConversion.kt");
|
||||
|
||||
Reference in New Issue
Block a user