KT-3308 Support local generic functions in codegen
#KT-3308 Can'tReproduce
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
fun box(): String {
|
||||||
|
fun foo<T>(t: T) = t
|
||||||
|
|
||||||
|
return foo("OK")
|
||||||
|
}
|
||||||
@@ -2951,6 +2951,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
|||||||
doTest("compiler/testData/codegen/box/functions/localFunctions/kt2895.kt");
|
doTest("compiler/testData/codegen/box/functions/localFunctions/kt2895.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt3308.kt")
|
||||||
|
public void testKt3308() throws Exception {
|
||||||
|
doTest("compiler/testData/codegen/box/functions/localFunctions/kt3308.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt3978.kt")
|
@TestMetadata("kt3978.kt")
|
||||||
public void testKt3978() throws Exception {
|
public void testKt3978() throws Exception {
|
||||||
doTest("compiler/testData/codegen/box/functions/localFunctions/kt3978.kt");
|
doTest("compiler/testData/codegen/box/functions/localFunctions/kt3978.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user