Fixed a type inference bugs

Pass source code line numbers instead of error numbers as a temporary hack
This commit is contained in:
Shunsuke Shibayama 2022-08-19 01:33:05 +09:00
parent 1078345a98
commit 791107cdd3
9 changed files with 305 additions and 312 deletions

View file

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