documented optional indentation for 'case' statements/'case' objects

This commit is contained in:
Araq 2012-06-22 17:47:03 +02:00
commit 48847b5616
5 changed files with 35 additions and 4 deletions

View file

@ -97,7 +97,8 @@ proc getOrdValue(n: PNode): biggestInt =
case n.kind
of nkCharLit..nkInt64Lit: result = n.intVal
of nkNilLit: result = 0
else:
of nkHiddenStdConv: result = getOrdValue(n.sons[1])
else:
LocalError(n.info, errOrdinalTypeExpected)
result = 0