Add and, or type parsing

This commit is contained in:
Shunsuke Shibayama 2022-10-02 11:53:15 +09:00
parent 05c434781b
commit a4f0ad4024
2 changed files with 23 additions and 3 deletions

View file

@ -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 {