How to typing a array and funcref ( Array or Function type check in compile time)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By freakcoco

something like:

var foo :Array[int] = [1,2,4,5,6]
var bar: FuncRef(Array[int]) -> Array[int] = funcref(self, "myfunction")