Enable SAM conversion for Kotlin functions by default in new inference

KT-25686
This commit is contained in:
Mikhail Zarechenskiy
2018-08-10 11:03:40 +03:00
parent 31a5746724
commit b1985ee422
11 changed files with 97 additions and 0 deletions
@@ -206,6 +206,16 @@ public class CliTestGenerated extends AbstractCliTest {
runTest("compiler/testData/cli/jvm/experimentalUnresolved.args");
}
@TestMetadata("explicitlyDisableSamConversionsWithOldFlag.args")
public void testExplicitlyDisableSamConversionsWithOldFlag() throws Exception {
runTest("compiler/testData/cli/jvm/explicitlyDisableSamConversionsWithOldFlag.args");
}
@TestMetadata("explicitlyDisabledSamConversions.args")
public void testExplicitlyDisabledSamConversions() throws Exception {
runTest("compiler/testData/cli/jvm/explicitlyDisabledSamConversions.args");
}
@TestMetadata("extraArgumentPassedInObsoleteForm.args")
public void testExtraArgumentPassedInObsoleteForm() throws Exception {
runTest("compiler/testData/cli/jvm/extraArgumentPassedInObsoleteForm.args");
@@ -416,6 +426,16 @@ public class CliTestGenerated extends AbstractCliTest {
runTest("compiler/testData/cli/jvm/multipleTextRangesInDiagnosticsOrder.args");
}
@TestMetadata("newInferenceImpliesSamConversions.args")
public void testNewInferenceImpliesSamConversions() throws Exception {
runTest("compiler/testData/cli/jvm/newInferenceImpliesSamConversions.args");
}
@TestMetadata("newInferenceWithOldFlagImpliesSamConversions.args")
public void testNewInferenceWithOldFlagImpliesSamConversions() throws Exception {
runTest("compiler/testData/cli/jvm/newInferenceWithOldFlagImpliesSamConversions.args");
}
@TestMetadata("noReflect.args")
public void testNoReflect() throws Exception {
runTest("compiler/testData/cli/jvm/noReflect.args");