Revert "Actual fix for #40" because it's shit

This reverts commit 15f8995ae2.
This commit is contained in:
Felix Krause 2017-07-10 19:52:34 +02:00
parent bdbdcc074b
commit 0caebe2618
1 changed files with 1 additions and 3 deletions

View File

@ -74,9 +74,7 @@ type
macro typeHintStateMachine(c: untyped, content: varargs[untyped]): typed =
yAssert content.kind == nnkArgList
result = newNimNode(nnkCaseStmt, content).add(copyNimNode(c))
for branchStmt in content:
let branch = branchStmt[0]
echo $branch.kind
for branch in content.children:
yAssert branch.kind == nnkOfBranch
var
charBranch = newNimNode(nnkOfBranch, branch)