mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-11 11:32:28 +00:00
13 lines
250 B
Text
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)
|
|
}
|
|
}
|