Ticket #259 (new defect)
type checker appears to find missing library definition for MAX and MIN for ZZ32
| Reported by: | steve.heller | Owned by: | EricAllen |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | library | Version: | |
| Keywords: | MIN MAX type-checking | Cc: |
Description
The following code does not type check unless I un-comment out the definitions of the MIN and MAX oprs especially for ZZ32.
component tryit (* trying out stuff *)
export Executable
(*
opr MIN(a:ZZ32,b:ZZ32):ZZ32 = if a<b then a else b end
opr MAX(a:ZZ32,b:ZZ32):ZZ32 = if a>b then a else b end
*)
object trip (a:ZZ32, b:ZZ32, c:ZZ32) end trip
orderedTrip(a:ZZ32, b:ZZ32, c:ZZ32):trip =
trip ((a MIN b), (a MAX b), c)
run(args:String...) = do end
end tryit
Change History
Note: See
TracTickets for help on using
tickets.

