Generate receivers for callable references in the same way as for calls

Properly handle callable members imported from objects
and other related corner cases.

 #KT-18084 Fixed
This commit is contained in:
Dmitry Petrov
2017-05-25 15:53:26 +03:00
parent 7220183912
commit 1420926a9b
6 changed files with 113 additions and 18 deletions
@@ -563,6 +563,12 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
doTest(fileName);
}
@TestMetadata("callableReferenceToImportedFromObject.kt")
public void testCallableReferenceToImportedFromObject() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/callableReferenceToImportedFromObject.kt");
doTest(fileName);
}
@TestMetadata("calls.kt")
public void testCalls() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/calls.kt");