Implemented parameter passing for function pointers
This commit is contained in:
@ -7,10 +7,10 @@ struct Struct {
|
||||
main() {
|
||||
s := new(Struct)
|
||||
s.func = f
|
||||
s.func()
|
||||
s.func(0)
|
||||
sys.exit(1)
|
||||
}
|
||||
|
||||
f() {
|
||||
sys.exit(0)
|
||||
f(code int) {
|
||||
sys.exit(code)
|
||||
}
|
Reference in New Issue
Block a user