Skip to content

Commit

Permalink
Remove call to error in saw-script type checker.
Browse files Browse the repository at this point in the history
Fixes #698.
  • Loading branch information
Brian Huffman committed May 17, 2020
1 parent 2d1f37b commit 5de5be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SAWScript/MGU.hs
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ inferRecDecls ds =
$ sequence [ withExprPos pos $ inferE (patternLName p, e)
| Decl pos p _ e <- ds
]
sequence_ $ zipWith (constrainTypeWithPattern (error "FIXME")) ts pats'
sequence_ $ zipWith (constrainTypeWithPattern (patternLName (head pats))) ts pats'
ess <- generalize es ts
return [ Decl pos p (Just s) e1
| (pos, p, (e1, s)) <- zip3 (map getPos ds) pats ess
Expand Down

0 comments on commit 5de5be2

Please sign in to comment.