Skip to content

Commit

Permalink
TEST: add @refparo test, fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Aug 25, 2021
1 parent a7cf6f5 commit e4948a9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions base/src/test/resources/success/refparo1.aya
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
-- #2 in public repo
data Entity : Set
| john

struct EventT : Set
| agentT : Set

struct Event (t : EventT) : Set
| agent : t.agentT

data Run (e : Event (new EventT { | agentT => Entity })) : Set
| (john) => run1

def mkVerb {t : EventT} (p : Event t -> Set) : (Event t -> Set) -> Set
=> \f => Sig (e : Event t) ** (Sig (p e) ** (f e))

0 comments on commit e4948a9

Please sign in to comment.