mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 21:44:34 +00:00
Fixed a type inference bugs
Pass source code line numbers instead of error numbers as a temporary hack
This commit is contained in:
parent
1078345a98
commit
791107cdd3
9 changed files with 305 additions and 312 deletions
|
@ -1261,9 +1261,8 @@ impl TypeSpec {
|
|||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
|
||||
pub enum TypeBoundSpec {
|
||||
Subtype { sub: VarName, sup: TypeSpec }, // e.g. S <: Show
|
||||
Subtype { sub: VarName, sup: TypeSpec }, // e.g. S <: Show
|
||||
Instance { name: VarName, ty: TypeSpec }, // e.g. N: Nat
|
||||
// Predicate, // TODO: e.g. N > 5
|
||||
}
|
||||
|
||||
impl NestedDisplay for TypeBoundSpec {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue