Skip to content

Bad error msg when using ? in the repl #8301

@shawsa

Description

@shawsa

Was experimenting in the repl and encountered this error.

[sage@sage-laptop-arch linalg]$ roc repl

  The rockin' roc repl
────────────────────────

Enter an expression, or :help, or :q to quit.

» test = [1, 2, 3]

[1, 2, 3] : List (Num *)
» List.first(test)?
An internal compiler expectation was broken.
This is definitely a compiler bug.
Please file an issue here: <https://github.com/roc-lang/roc/issues/new/choose>
single register layouts are not complex symbols
Location: crates/compiler/gen_dev/src/generic64/x86_64.rs:355:17

This doesn't seem to happen when I compile the same thing so maybe something wrong with the repl?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions