fix: const call bug

This commit is contained in:
Shunsuke Shibayama 2023-12-30 21:53:38 +09:00
parent 477778c9fe
commit 2ddff1512f
6 changed files with 35 additions and 13 deletions

View file

@ -2245,6 +2245,7 @@ impl Type {
}
}
/// NOTE: don't use this, use `Context::subtype_of(t, &Type::Type)` instead
pub fn is_type(&self) -> bool {
match self {
Self::FreeVar(fv) if fv.is_linked() => fv.crack().is_type(),