[FIR-TEST] Add test with unresolved invoke of lambda with receiver

This commit is contained in:
Dmitriy Novozhilov
2019-11-26 15:37:53 +03:00
parent 96d3a06129
commit 3c661dd142
3 changed files with 16 additions and 0 deletions
@@ -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>#()
}
@@ -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");