roc/test/fx-open/app_with_custom_error.roc
Luke Boswell 71cd2cd2f4
try fix
2025-12-04 16:56:27 +11:00

13 lines
250 B
Text

app [main!] { pf: platform "./platform/main.roc" }
import pf.Stdout
# Test: both Exit and CustomError in different branches
# This triggers the type error
main! = |args| {
if List.is_empty(args) {
Err(Exit(42))
} else {
Err(CustomError)
}
}