mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-01 21:21:10 +00:00
Add and
, or
type parsing
This commit is contained in:
parent
05c434781b
commit
a4f0ad4024
2 changed files with 23 additions and 3 deletions
|
@ -366,7 +366,7 @@ impl Context {
|
|||
/// assert supertype_of(Bool, Bool)
|
||||
/// ```
|
||||
/// This function does not consider the nominal subtype relation.
|
||||
/// Use `rec_full_supertype_of` for complete judgement.
|
||||
/// Use `supertype_of` for complete judgement.
|
||||
/// 単一化、評価等はここでは行わない、スーパータイプになる可能性があるかだけ判定する
|
||||
/// ので、lhsが(未連携)型変数の場合は単一化せずにtrueを返す
|
||||
pub(crate) fn structural_supertype_of(&self, lhs: &Type, rhs: &Type) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue