ref: 8c6a9b940b85f46056519373fcca1d9aefd49eec 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 }