ref: 2c8a0da890220d21e84f79b5d70c36e0434081fb 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 }