intVal works now on enum field symbols (#11403)

* intVal works now on enum field symbols

* disable flakey titerators test
This commit is contained in:
Arne Döring
2019-06-05 14:55:47 +02:00
committed by Andreas Rumpf
parent 9230862534
commit efbf43d4a9
4 changed files with 24 additions and 3 deletions

View File

@@ -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.}