KT-3308 Support local generic functions in codegen

#KT-3308 Can'tReproduce
This commit is contained in:
Mikhael Bogdanov
2014-04-01 11:04:24 +04:00
parent 4269729b0a
commit e2f3a589e7
2 changed files with 10 additions and 0 deletions
@@ -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");
}
@TestMetadata("kt3308.kt")
public void testKt3308() throws Exception {
doTest("compiler/testData/codegen/box/functions/localFunctions/kt3308.kt");
}
@TestMetadata("kt3978.kt")
public void testKt3978() throws Exception {
doTest("compiler/testData/codegen/box/functions/localFunctions/kt3978.kt");