mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-11 03:20:21 +00:00
13 lines
301 B
Text
13 lines
301 B
Text
app [main!] { pf: platform "./platform/main.roc" }
|
|
|
|
import pf.Stdout
|
|
|
|
# Test: Three different error tags across branches
|
|
# Expected: Should work with open union
|
|
main! = |args| {
|
|
match List.len(args) {
|
|
0 => Err(Exit(42))
|
|
1 => Err(CustomError)
|
|
_ => Err(AnotherError)
|
|
}
|
|
}
|