Function gluon_base::resolve::remove_alias
source · pub fn remove_alias<T>(
env: &(dyn TypeEnv<Type = T> + '_),
interner: &mut impl TypeContext<Symbol, T>,
typ: &T
) -> Result<Option<T>, Error>
Expand description
Expand typ
if it is an alias that can be expanded and return the expanded type.
Returns None
if the type is not an alias or the alias could not be expanded.