KtLightMethod: Wrap return type so it resolves to light method's type parameter as opposed to delegate's

Affects java type inference in IDEA

  #KT-12090 Fixed
  #KT-11095 Fixed
This commit is contained in:
Pavel V. Talanov
2016-05-25 18:12:58 +03:00
parent e1a21abd72
commit 3a3e145de2
10 changed files with 89 additions and 2 deletions
@@ -79,6 +79,18 @@ public class JavaAgainstKotlinSourceCheckerTestGenerated extends AbstractJavaAga
doTest(fileName);
}
@TestMetadata("InferenceReturnType_1_6.kt")
public void testInferenceReturnType_1_6() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/InferenceReturnType_1_6.kt");
doTest(fileName);
}
@TestMetadata("InferenceReturnType_1_8.kt")
public void testInferenceReturnType_1_8() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/InferenceReturnType_1_8.kt");
doTest(fileName);
}
@TestMetadata("InterfaceDefaultImpls.kt")
public void testInterfaceDefaultImpls() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/InterfaceDefaultImpls.kt");