lean4-htt/tests/compiler/strictOrSimp.lean
2021-01-27 14:45:31 +01:00

11 lines
211 B
Text

partial def spin : Nat → Bool
| n => spin (n)
@[inline] def C : Nat := 0
def f (b : Nat) :=
if strictOr (C == 0) (spin b) then "hello"
else "world"
def main (xs : List String) : IO Unit :=
IO.println (f 0)