slovo/docs/language/examples/speculative/diagnostics.slo
2026-05-22 08:38:43 +02:00

13 lines
343 B
Plaintext

; status: design/speculative
; This file intentionally contains an example error shape.
; After top-level `test` support exists, the checked test expression should
; report a structured TypeMismatch diagnostic for this form.
(module diagnostics)
(fn add ((a i32) (b i32)) -> i32
(+ a b))
(test "bad call example"
(= (add 3 "hello") 0))