ref: 645ac9298c8d9c7ffee3da6c849a389bcc9adcb2 dir: /test/infer-named.myr/
use std type u = union `Foo `Bar int ;; const f = {v : int -> u -> `Bar v } const main = { var v v = f(99) match v | `Foo: -> 1 | `Bar x: -> x ;; -> 2 }