Skip to content

Integral type inference is busted for chars #3477

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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