PSI2IR Use resulting descriptor extension receiver type

Use resulting descriptor extension receiver type instead of
ReceiverValue.type (which can contain captured types, which would be
approximated, and cause IR validation errors).
This commit is contained in:
Dmitry Petrov
2020-03-02 17:28:06 +03:00
parent 51749b9747
commit 01c4e66edb
6 changed files with 123 additions and 1 deletions
@@ -1846,6 +1846,11 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
runTest("compiler/testData/ir/irText/types/genericPropertyReferenceType.kt");
}
@TestMetadata("inStarProjectionInReceiverType.kt")
public void testInStarProjectionInReceiverType() throws Exception {
runTest("compiler/testData/ir/irText/types/inStarProjectionInReceiverType.kt");
}
@TestMetadata("intersectionType1_NI.kt")
public void testIntersectionType1_NI() throws Exception {
runTest("compiler/testData/ir/irText/types/intersectionType1_NI.kt");