ref: c4b6a1c57ece9e02c05f046f4dd472f6d8c6ec6b
dir: /test/matchconst.myr/
use std
/* checks that matching works when comparing against constants,
instead of just literals. exits with 88. */
/* some misc constants */
const Ca = 123
const Cb = 8
const Cc = 42
const main = {
var v
v = 8
match v
Ca: -> 123 ;;
Cb: -> 88 ;;
Cc: -> 42 ;;
;;
}