user_error.nbt 128 B

123456
  1. fn foo(n: Scalar) -> Scalar =
  2. if n > 0
  3. then sqrt(n) + 1
  4. else error("Argument of foo(n) can not be negative")
  5. foo(-3)