ref: 57d3cab36e26b6f18dfc4832caa301ef953fb1d9 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 }