mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
intVal works now on enum field symbols (#11403)
* intVal works now on enum field symbols * disable flakey titerators test
This commit is contained in:
committed by
Andreas Rumpf
parent
9230862534
commit
efbf43d4a9
@@ -226,8 +226,10 @@ proc kind*(n: NimNode): NimNodeKind {.magic: "NKind", noSideEffect.}
|
||||
## returns the `kind` of the node `n`.
|
||||
|
||||
proc intVal*(n: NimNode): BiggestInt {.magic: "NIntVal", noSideEffect.}
|
||||
## Returns an integer value from any integer literal or enum field symbol.
|
||||
|
||||
proc floatVal*(n: NimNode): BiggestFloat {.magic: "NFloatVal", noSideEffect.}
|
||||
## Returns a float from any floating point literal.
|
||||
|
||||
{.push warnings: off.}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user