Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Compiler/Lambda/LambdaExp.sml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ structure LambdaExp : LAMBDA_EXP =
| SWITCH_W {switch, precision, tyname} =>
layoutSwitch layoutLambdaExp (fn w => "0x" ^ IntInf.fmt StringCvt.HEX w) switch
| SWITCH_S sw =>
layoutSwitch layoutLambdaExp (fn x => x) sw
layoutSwitch layoutLambdaExp (fn x => "\"" ^ String.toString x ^ "\"") sw
| SWITCH_C sw =>
let fun unwildify (sw as SWITCH(lamb as VAR{lvar,...},rules,SOME e)) =
(case e of
Expand Down
1 change: 1 addition & 0 deletions test/barry/string.out.ok
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ test22 OK
test23 OK
test24 OK
test25 OK
test26 OK
7 changes: 7 additions & 0 deletions test/barry/string.sml
Original file line number Diff line number Diff line change
Expand Up @@ -371,4 +371,11 @@ val test25 =
andalso not (isPrefix "Abcde" "abcde")
andalso not (isPrefix "abcdE" "abcde"))

val test26 =
tst' "test26" (fn _ =>
case "foo" of
"bar" => false
| "baz" => false
| "foo" => true
| _ => false)
end
Loading