This commit is contained in:
Aleksey Kladov 2019-11-26 19:30:57 +03:00
parent 6560e4ff2e
commit 6fb4871f31

View file

@ -61,6 +61,8 @@ pub enum TypeNs {
GenericParam(u32), GenericParam(u32),
AdtId(AdtId), AdtId(AdtId),
AdtSelfType(AdtId), AdtSelfType(AdtId),
// Yup, enum variants are added to the types ns, but any usage of variant as
// type is an error.
EnumVariantId(EnumVariantId), EnumVariantId(EnumVariantId),
TypeAliasId(TypeAliasId), TypeAliasId(TypeAliasId),
BuiltinType(BuiltinType), BuiltinType(BuiltinType),