onyx-lang/onyx

list.from_array fails by indirect call type mismatch

Closed this issue · 1 comments

The following code with list.from_array function fails to compile with the error message below.

use core {println}
use core.list

main :: () {
    arr := i32.[1];
    println(list.from_array(arr));
}
TRAP: indirect call type mismatch
TRACE:
    func[18]
    func[155]
    func[154]
    func[153]
    func[106]
    func[105]

version: v0.1.9

Good catch! Thanks for providing a fix for it as well!