1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-01 00:04:58 +03:00
juvix/tests/negative/DuplicateClause.juvix
janmasrovira 38622b28d1
Allow type signatures to have a body (#1785)
- Closes #1637.

A function type signature is now allowed to have a body. This is valid
for both top level and let definitions.
```
not : Bool -> Bool := λ {
 | true := false
 | false := true
};
```
2023-01-31 08:46:53 +00:00

11 lines
92 B
Plaintext

module DuplicateClause;
axiom T : Type;
id : T → T := λ {
t := t
};
id t := t;
end;