Allow Result as a return type if one enabled inline classes explicitly

#KT-38042 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2020-04-07 01:25:55 +03:00
parent 1ffdc11d31
commit 73e1ddc505
9 changed files with 45 additions and 1 deletions
@@ -615,6 +615,21 @@ public class CliTestGenerated extends AbstractCliTest {
runTest("compiler/testData/cli/jvm/releaseCoroutinesApiVersion1.2.args");
}
@TestMetadata("resultInReturnTypeUnsupportedByDefault14.args")
public void testResultInReturnTypeUnsupportedByDefault14() throws Exception {
runTest("compiler/testData/cli/jvm/resultInReturnTypeUnsupportedByDefault14.args");
}
@TestMetadata("resultInReturnTypeWithEnabledInlineClasses.args")
public void testResultInReturnTypeWithEnabledInlineClasses() throws Exception {
runTest("compiler/testData/cli/jvm/resultInReturnTypeWithEnabledInlineClasses.args");
}
@TestMetadata("resultInReturnTypeWithEnabledInlineClassesXX.args")
public void testResultInReturnTypeWithEnabledInlineClassesXX() throws Exception {
runTest("compiler/testData/cli/jvm/resultInReturnTypeWithEnabledInlineClassesXX.args");
}
@TestMetadata("returnAsWhenKey.args")
public void testReturnAsWhenKey() throws Exception {
runTest("compiler/testData/cli/jvm/returnAsWhenKey.args");