mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 12:14:43 +00:00
fix: const call bug
This commit is contained in:
parent
477778c9fe
commit
2ddff1512f
6 changed files with 35 additions and 13 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue