IR: capture more type parameters for local functions.

Types of value parameters and captured variables, even unused, need to
be considered.
This commit is contained in:
Georgy Bronnikov
2020-01-15 16:44:30 +03:00
parent 437a26684d
commit 174b3db723
6 changed files with 45 additions and 6 deletions
@@ -318,6 +318,11 @@ public class CompileJavaAgainstKotlinTestGenerated extends AbstractCompileJavaAg
runTest("compiler/testData/compileJavaAgainstKotlin/method/TypeParamInInner.kt");
}
@TestMetadata("TypeParamInInner2.kt")
public void testTypeParamInInner2() throws Exception {
runTest("compiler/testData/compileJavaAgainstKotlin/method/TypeParamInInner2.kt");
}
@TestMetadata("Vararg.kt")
public void testVararg() throws Exception {
runTest("compiler/testData/compileJavaAgainstKotlin/method/Vararg.kt");
@@ -966,6 +971,11 @@ public class CompileJavaAgainstKotlinTestGenerated extends AbstractCompileJavaAg
runTest("compiler/testData/compileJavaAgainstKotlin/method/TypeParamInInner.kt");
}
@TestMetadata("TypeParamInInner2.kt")
public void testTypeParamInInner2() throws Exception {
runTest("compiler/testData/compileJavaAgainstKotlin/method/TypeParamInInner2.kt");
}
@TestMetadata("Vararg.kt")
public void testVararg() throws Exception {
runTest("compiler/testData/compileJavaAgainstKotlin/method/Vararg.kt");
@@ -316,6 +316,11 @@ public class IrCompileJavaAgainstKotlinTestGenerated extends AbstractIrCompileJa
runTest("compiler/testData/compileJavaAgainstKotlin/method/TypeParamInInner.kt");
}
@TestMetadata("TypeParamInInner2.kt")
public void testTypeParamInInner2() throws Exception {
runTest("compiler/testData/compileJavaAgainstKotlin/method/TypeParamInInner2.kt");
}
@TestMetadata("Vararg.kt")
public void testVararg() throws Exception {
runTest("compiler/testData/compileJavaAgainstKotlin/method/Vararg.kt");