FIR: Support adding expect type to calls in foo() as R position

See https://kotlinlang.org/docs/whatsnew12.html#support-for-foo-as-a-shorthand-for-this-foo
This commit is contained in:
Denis.Zharkov
2021-05-26 17:44:05 +03:00
committed by TeamCityServer
parent 6136526a3a
commit d932d5b0a5
20 changed files with 219 additions and 49 deletions
@@ -12197,6 +12197,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
runTest("compiler/testData/diagnostics/tests/inference/expectedTypeWithGenerics.kt");
}
@Test
@TestMetadata("expectedTypeWithGenericsSafeCalls.kt")
public void testExpectedTypeWithGenericsSafeCalls() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/expectedTypeWithGenericsSafeCalls.kt");
}
@Test
@TestMetadata("extensionLambdasAndArrow.kt")
public void testExtensionLambdasAndArrow() throws Exception {
@@ -12197,6 +12197,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
runTest("compiler/testData/diagnostics/tests/inference/expectedTypeWithGenerics.kt");
}
@Test
@TestMetadata("expectedTypeWithGenericsSafeCalls.kt")
public void testExpectedTypeWithGenericsSafeCalls() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/expectedTypeWithGenericsSafeCalls.kt");
}
@Test
@TestMetadata("extensionLambdasAndArrow.kt")
public void testExtensionLambdasAndArrow() throws Exception {