Skip to content

Typecheck const generics #1351

@CohenArthur

Description

@CohenArthur

I don't think const generic parameters should be typechecked during top-level. They do not "declare" a type, but they use one (const N: usize). So they should only be typechecked when items are typechecked. This should be the first change, as generic parameters for items are not used after the TypeCheckTopLevel resolver phase (in functions for example).

Afterwards, once we are sure that the type they reference exists and has been declared, we must check that it is a valid "const generic type" (#1303)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions