mirror of
https://github.com/anoma/juvix.git
synced 2024-11-30 05:42:26 +03:00
5f803ec6c2
* Closes #3054 * Adds named argument signatures for generated record projections.
12 lines
158 B
Plaintext
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;
|
|
};
|