Skip to content

Toplevel expression is expected to have unit type #6

Open
@jcsherin

Description

@jcsherin

You encounter this error (in chapter 2) before the unit type is introduced. Introduce the underscore binding to which you can assign values, you do not care about. This will solve the compiler error.

Also better explain why this is a compilation error in the first place. Explain the term toplevel expression.

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