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
commit efbf43d4a9
4 changed files with 24 additions and 3 deletions

View file

@ -93,3 +93,14 @@ static:
quit("may not be evaluated")
assert( (myLit or bottom()) == myLit )
type
Fruit = enum
apple
banana
orange
macro foo(x: typed) =
doAssert Fruit(x.intVal) == banana
foo(banana)