1
1
mirror of https://github.com/anoma/juvix.git synced 2024-11-30 05:42:26 +03:00
juvix/tests/positive/RecordProjectionSignature.juvix
Łukasz Czajka 5f803ec6c2
Named arguments for record projections (#3173)
* Closes #3054
* Adds named argument signatures for generated record projections.
2024-11-15 18:25:49 +01:00

12 lines
158 B
Plaintext

module RecordProjectionSignature;
import Stdlib.Data.Nat open;
trait
type R A := mkR@{fun : (n : A) -> A};
f {{R Nat}} : Nat :=
R.fun@{
n := 1;
};