fixes #619
This commit is contained in:
parent
9e00d3aec2
commit
f7dca91344
8 changed files with 31 additions and 10 deletions
|
|
@ -904,9 +904,8 @@ proc `of` *[T, S](x: T, y: S): bool {.magic: "Of", noSideEffect.}
|
|||
## Checks if `x` has a type of `y`
|
||||
##
|
||||
## .. code-block:: Nim
|
||||
## assert(EFloatingPoint of EBase)
|
||||
## assert(EIO of ESystem)
|
||||
## assert(EDivByZero of EBase)
|
||||
## assert(FloatingPointError of Exception)
|
||||
## assert(DivByZeroError of Exception)
|
||||
|
||||
proc cmp*[T](x, y: T): int {.procvar.} =
|
||||
## Generic compare proc. Returns a value < 0 iff x < y, a value > 0 iff x > y
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue