Skip to content

Commit

Permalink
compiler: further simplify test for #29:
Browse files Browse the repository at this point in the history
  • Loading branch information
Zilin Chen authored and Zilin Chen committed Jan 22, 2018
1 parent eea1b0f commit 97f6a48
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions cogent/tests/pass_ticket-e29.cogent
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
type ExState
type VfsInode
type OSBuffer
type A

type LRR acc brk = (acc, <Iterate|Break brk>)

Expand All @@ -12,13 +10,10 @@ type Seq32Param acc obsv rbrk = #{
}
type Seq32_body acc obsv rbrk = #{acc:acc, obsv:obsv!} -> LRR acc rbrk

bar: Seq32_body OSBuffer () ()
bar: Seq32_body A () ()

foo : (OSBuffer, VfsInode) -> (OSBuffer, VfsInode)
foo (buf, inode) =
let (buf, _) = seq32 #{
f = bar,
acc = buf,
obsv = () }
in (buf, inode)
foo : A -> A
foo buf =
let (buf, _) = seq32 #{f = bar, acc = buf, obsv = ()}
in buf

0 comments on commit 97f6a48

Please sign in to comment.