1
1
mirror of https://github.com/anoma/juvix.git synced 2025-01-07 16:22:14 +03:00
juvix/tests/positive/265/M.juvix
janmasrovira 32059965a9
Type checking fails when the type of a pattern is not given by the signature (#1378)
* infer hole in type from pattern

* refactor

* fix error message

* format

* fix matching of identifiers

* improve error message
2022-07-15 17:57:04 +02:00

17 lines
205 B
Plaintext

module M;
inductive Bool {
false : Bool;
true : Bool;
};
inductive Pair (A : Type) (B : Type) {
mkPair : A → B → Pair A B;
};
f : _ → _;
f (mkPair false true) ≔ true;
f _ ≔ false;
end;