Debian Codegraph @

lang/interpret_test/TestAstFunc1/recursive_class1.txtar

raw
1 -- main.mcl --
2 import "fmt"
3 $max = 3
4 include c1(0) # start at zero
5 class c1($count) {
6 if $count == $max {
7 test "done" {
8 stringptr => fmt.printf("count is %d", $count),
9 }
10 } else {
11 include c1($count + 1) # recursion not supported atm
12 }
13 }
14 -- OUTPUT --
15 # err: errSetScope: recursive reference while setting scope: not a dag