KT-3308: Support local generic functions in codegen

#KT-3308 Fixed
This commit is contained in:
Mikhael Bogdanov
2013-09-24 12:47:59 +04:00
parent 46fec74797
commit 7520ff1420
5 changed files with 50 additions and 3 deletions
@@ -0,0 +1,14 @@
fun box() : String {
fun <T> local(s : T) : T {
return s;
}
fun test(s : Int) : Int {
return local(s)
}
if (test(10) != 10) return "fail1"
return "OK"
}