Open lukewilliamboswell opened 5 days ago
Further simplification, gives similar error.
thread 'main' panicked at crates/compiler/gen_llvm/src/llvm/build.rs:5748:19:
Error in alias analysis: error in module ModName("UserApp"), function definition FuncName("\x11\x00\x00\x00\x04\x00\x00\x809\t\xc97\x96\xfd\xd8j"), definition of value binding ValueId(40): expected type 'union { (((heap_cell,), ()),), ((),) }', found type 'union { (), (), ((heap_cell,),), (), (), (), () }'
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
app [main!] { pf: platform "../platform/main.roc" }
import pf.Stdout
main! = \{} ->
# Prints out each of the authors
print! ["Foo", "Bar", "Baz"]
print! : List Str => Result {} _
print! = \authors ->
when authors is
[] -> Ok {}
[author, .. as rest] ->
try Stdout.line! author
print! rest
While upgrading basic-cli in this commit