FIR: Add more tests for delegate inference

This commit is contained in:
Simon Ogorodnik
2021-11-14 16:19:06 +03:00
committed by teamcity
parent bb411cbba7
commit 2e69f7732c
8 changed files with 143 additions and 0 deletions
@@ -1207,6 +1207,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
runTest("compiler/fir/analysis-tests/testData/resolve/delegates/delegateInference.kt");
}
@Test
@TestMetadata("delegateWithArgInference.kt")
public void testDelegateWithArgInference() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/delegates/delegateWithArgInference.kt");
}
@Test
@TestMetadata("delegateWithLambda.kt")
public void testDelegateWithLambda() throws Exception {
@@ -1236,6 +1242,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
public void testProvideDelegate() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/delegates/provideDelegate.kt");
}
@Test
@TestMetadata("receiverInference.kt")
public void testReceiverInference() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/delegates/receiverInference.kt");
}
}
@Nested