documented optional indentation for 'case' statements/'case' objects
This commit is contained in:
parent
09499b3822
commit
48847b5616
5 changed files with 35 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue