Skip to content

Commit

Permalink
compiler: another file demo'ing #22 that's not fixed?
Browse files Browse the repository at this point in the history
  • Loading branch information
Zilin Chen authored and Zilin Chen committed Mar 6, 2018
1 parent d2a210a commit 2a348d5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cogent/tests/pass_subtyping-member.cogent
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
type A = {f1 : U32, f2 : Bool}
type S

free : (S, A take (..)) -> S

foo : (S, A) -> S
foo (s,a) = let x = a.f1 !a
and y = a.f2 !a
in free (s,a)

0 comments on commit 2a348d5

Please sign in to comment.