ref: 506eba89a05c1c8f2c9120beec55acfc9d756f4f 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 }