Skip to content

ICE on cast in constant expression #9942

Closed
@jld

Description

@jld

The input: static S: uint = 23 as uint; [0, ..S]; ()

The result:

error: internal compiler error: node_id_to_type: no type for node `expr 23 as uint (id=15)`

(cc @huonw )

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions