lean4-htt/tests/lean/run/compiler_bug1.lean

7 lines
226 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

inductive stmt : Type
| switch : list (nat × stmt) → stmt → stmt
| nop : stmt
meta def compile_cases_on_to_ir_expr : option stmt := do
do cs' ← return ([] : list (nat × stmt)),
return (stmt.switch cs' stmt.nop)