Refine type of min
.
Closes PR14896.
This commit is contained in:
parent
32fb50b4ce
commit
40e7c969ab
|
@ -1225,6 +1225,10 @@
|
|||
(map varop (list -PosByte -Byte -PosIndex -Index -PosFixnum -NonNegFixnum))
|
||||
(commutative-case -NegFixnum -Fixnum)
|
||||
(commutative-case -NonPosFixnum -Fixnum)
|
||||
(commutative-case -PosByte -PosInt)
|
||||
(commutative-case -Byte -Nat)
|
||||
(commutative-case -PosFixnum -PosInt)
|
||||
(commutative-case -NonNegFixnum -Nat)
|
||||
(map varop (list -NegFixnum -NonPosFixnum -Fixnum -PosInt -Nat))
|
||||
(commutative-case -NegInt -Int)
|
||||
(commutative-case -NonPosInt -Int)
|
||||
|
|
2
typed-racket-test/succeed/pr14896.rkt
Normal file
2
typed-racket-test/succeed/pr14896.rkt
Normal file
|
@ -0,0 +1,2 @@
|
|||
#lang typed/racket
|
||||
(ann (min 255 (max 0 (ann 0 Integer))) Byte)
|
Loading…
Reference in New Issue
Block a user