chore: Failure == Any

This commit is contained in:
Shunsuke Shibayama 2024-10-04 14:38:34 +09:00
parent 44192b2382
commit a9cd32d553
4 changed files with 8 additions and 8 deletions

View file

@ -1391,7 +1391,8 @@ pub enum Type {
},
FreeVar(FreeTyVar), // a reference to the type of other expression, see docs/compiler/inference.md
#[default]
Failure, // indicates a failure of type inference and behaves as `Never`.
/// for all T, `T <: Failure and T :> Failure`
Failure, // indicates a failure of type inference and behaves as `Any`.
/// used to represent `TyParam` is not initialized (see `erg_compiler::context::instantiate_tp`)
Uninited,
}