Simplified compilation of function calls
This commit is contained in:
11
tests/programs/function-pointer-field.q
Normal file
11
tests/programs/function-pointer-field.q
Normal file
@ -0,0 +1,11 @@
|
||||
import core
|
||||
|
||||
struct Struct {
|
||||
func *any
|
||||
}
|
||||
|
||||
main() {
|
||||
s := new(Struct)
|
||||
s.func = core.exit
|
||||
s.func()
|
||||
}
|
Reference in New Issue
Block a user