summaryrefslogtreecommitdiff
path: root/test/nestedgoto.myr
blob: 70f197ddbe3c4dcd743b1e2287fa4bdc3c34e964 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use std

const main = {
    match 0
    | 0:
        goto ok
    | 1:
        :ok
        -> void
    | _:
    ;;
    std.exit(1)
}