KT-3308: Support local generic functions in codegen
#KT-3308 Fixed
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user