blob: 355c330632d2e2f3b563d09068b9598e94d7231c [file]
inductive Foo
| foo | bar
def baz (b : Bool) (x : Foo := .foo) : Foo := Id.run <| do
let mut y := x
if b then
y := .bar
y