mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 21:44:34 +00:00
chore: Failure == Any
This commit is contained in:
parent
44192b2382
commit
a9cd32d553
4 changed files with 8 additions and 8 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue