I’ve opened an issue there: https://github.com/roc-lang/roc/issues/8577
app [main!] { pf: platform "./platform/main.roc" }
# OK main
main! = || {
s : List(U8)
s = "".to_utf8()
_slice = List.sublist(s, { start: 0, len: 0 })
}
# Roc crashed: Builtin.Num.U64 does not implement sublist
main! = || {
s : List(U8)
s = "".to_utf8()
_slice = s.sublist({ start: 0, len: 0 })
}
# Roc crashed: Error evaluating from shared memory: InvalidMethodReceiver
main! = || {
s = "".to_utf8()
_slice = s.sublist({ start: 0, len: 0 })
}
# Roc crashed: Error evaluating from shared memory: InvalidMethodReceiver
main! = || {
_ignore = "".to_utf8() == []
}
Last updated: Dec 21 2025 at 12:15 UTC