You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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 theTypeCheckTopLevel
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)
The text was updated successfully, but these errors were encountered: