Skip to content

Integral type inference is busted for chars #3477

Closed
@brson

Description

@brson
let p: char = 100;
error: internal compiler error: char type passed to convert_integral_ty_to_int_ty_set()

Inferring an integer to a char is pretty sneaky, so this should probably be an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-type-systemArea: Type systemI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions