Simplified compilation of function calls
This commit is contained in:
parent
c777d73bbb
commit
225d78e2d8
14 changed files with 114 additions and 97 deletions
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()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue