Skip to content

Commit

Permalink
compiler: fail again (#22)
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 68dd327 commit dd8a03f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions cogent/tests/pass_ticket-e22-7.cogent
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
type FsState = {
super : Ext2Superblock,
flags : U32
}

type Ext2Superblock = {
inode_count : U32,
free_inode_count : U32
}

fsop_inode_free2: FsState -> FsState
fsop_inode_free2 state =
let state_t { super } = state
and super = super { free_inode_count = 1 }
in state_t { super }

0 comments on commit dd8a03f

Please sign in to comment.