Skip to content

CS: contract violation in > and >= says the second argument #5373

@usaoc

Description

@usaoc

What version of Racket are you using?
v9.0.0.4 [cs]

What program did you run?
Example:

> ((sqrt -1) . > . (sqrt -2))
>: contract violation
  expected: real?
  given: 0.0+1.4142135623730951i
> ((sqrt -1) . >= . (sqrt -2))
>=: contract violation
  expected: real?
  given: 0.0+1.4142135623730951i
> (> (sqrt -1) (sqrt -2) (sqrt -3)) ; multiple arguments
>: contract violation
  expected: real?
  given: 0.0+1.4142135623730951i

What should have happened?
It should say the first argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions