Fixed up function template inference to handle pointer to template types
This commit is contained in:
12
tests/test_functionTemplateInference.krak
Normal file
12
tests/test_functionTemplateInference.krak
Normal file
@@ -0,0 +1,12 @@
|
||||
import io:*
|
||||
|
||||
fun ptrFn<T>(ptr: T*):void {
|
||||
println(*ptr)
|
||||
}
|
||||
|
||||
fun main():int {
|
||||
var a = 8
|
||||
ptrFn(&a)
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user