-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix type simplification dangling type variable problem
Affected trivial short-circuiting in the prover backends.
- Loading branch information
Showing
2 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
default Order dec | ||
$include <prelude.sail> | ||
|
||
/* Careless simplification of the existential type can leave an unused | ||
'b binding that the type checker rejects. */ | ||
|
||
val some_bool : unit -> bool | ||
|
||
function main() -> unit = { | ||
let x : {('b : Bool), true. bool('b & false)} = some_bool() & false; | ||
if x then print_endline("bad") else print_endline("good") | ||
} |