Skip to content

Commit

Permalink
fix up test; logged hydromatic#139
Browse files Browse the repository at this point in the history
  • Loading branch information
julianhyde committed Apr 13, 2022
1 parent 24b7a6a commit 50a55f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/test/resources/script/suchThat.sml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ in
end;
(*) A function with external extent.
fun hasJob e job =
fun hasJob (e: {name: string, job: string, empno: int}) job =
e.job = job;
(*) Valid, because the argument has an extent.
let
Expand Down
7 changes: 3 additions & 4 deletions src/test/resources/script/suchThat.sml.out
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ val it = [] : string list


(*) A function with external extent.
fun hasJob e job =
fun hasJob (e: {name: string, job: string, empno: int}) job =
e.job = job;
java.lang.ClassCastException: class net.hydromatic.morel.type.TypeVar cannot be cast to class net.hydromatic.morel.type.RecordLikeType (net.hydromatic.morel.type.TypeVar and net.hydromatic.morel.type.RecordLikeType are in unnamed module of loader 'app')
val hasJob = fn : {empno:int, job:string, name:string} -> string -> bool

(*) Valid, because the argument has an extent.
let
Expand All @@ -90,8 +90,7 @@ val it = [] : string list

(*) Invalid, because the argument has no extent.
from e suchThat hasJob e "CLERK";
stdIn:2.17-2.23 Error: unbound variable or constructor: hasJob
raised at: stdIn:2.17-2.23
val it = [] : {empno:int, job:string, name:string} list


(*) A string function with external extent.
Expand Down

0 comments on commit 50a55f1

Please sign in to comment.