Implemented dependency tracking
This commit is contained in:
parent
acfa6de1d4
commit
b095a95021
12 changed files with 75 additions and 69 deletions
|
@ -1,4 +1,4 @@
|
|||
import core
|
||||
import sys
|
||||
|
||||
struct Struct {
|
||||
func *any
|
||||
|
@ -6,6 +6,11 @@ struct Struct {
|
|||
|
||||
main() {
|
||||
s := new(Struct)
|
||||
s.func = core.exit
|
||||
s.func = f
|
||||
s.func()
|
||||
sys.exit(1)
|
||||
}
|
||||
|
||||
f() {
|
||||
sys.exit(0)
|
||||
}
|
|
@ -1,6 +1,13 @@
|
|||
import core
|
||||
import sys
|
||||
|
||||
main() {
|
||||
func := f
|
||||
func()
|
||||
sys.exit(1)
|
||||
}
|
||||
|
||||
f() {
|
||||
exit := core.exit
|
||||
exit()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue