1
1
mirror of https://github.com/anoma/juvix.git synced 2024-09-20 21:17:13 +03:00
juvix/test
Paul Cadman 90f607e6ce [typecheck] Shortcircuit clause pattern check errors
In the following case:

```
module WrongConstructorArity;
  inductive T {
    A : T;
  };

  f : T → T;
  f (A i) ≔ i;
end;
```

The typechecker fails when checking the clause `f (A i) := i` because of
the extra constructor argument. However if typechecking continues then
the variable `i` on the rhs does not have a type so we must short-circuit.
2022-04-08 13:32:11 +02:00
..
Scope Fix test suite 2022-04-08 12:46:37 +02:00
TypeCheck [typecheck] Shortcircuit clause pattern check errors 2022-04-08 13:32:11 +02:00
Base.hs w.i.p Fixing test suite 2022-04-07 18:10:53 +02:00
Main.hs Restore correct handling of TypeAny and add positive typecheck tests (#34) 2022-04-05 22:02:03 +02:00
Scope.hs [ CI ] New jobs: ormolu and hlint 2022-04-05 19:57:21 +02:00
TypeCheck.hs Restore correct handling of TypeAny and add positive typecheck tests (#34) 2022-04-05 22:02:03 +02:00