Skip to content

Commit

Permalink
Fix type error in assert function
Browse files Browse the repository at this point in the history
The string module is not defined when RuntimeProg is compiled. Therefore `String.^` could not be used.
  • Loading branch information
HeikoBecker authored Mar 4, 2020
1 parent fcce77b commit d2261da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basis/RuntimeProgScript.sml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ val _ = process_topdecs `
fun assert cond msg =
if (cond)
then ()
else (debugMsg (String.^ ("Assertion Failure: ") (msg));
else (debugMsg (msg);
abort());`
|> append_prog;

Expand Down

0 comments on commit d2261da

Please sign in to comment.