mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-29 01:51:43 +00:00
@@ -610,9 +610,10 @@ proc semRecordCase(c: PContext, n: PNode, check: var IntSet, pos: var int,
|
|||||||
chckCovered = true
|
chckCovered = true
|
||||||
of tyFloat..tyFloat128, tyString, tyError:
|
of tyFloat..tyFloat128, tyString, tyError:
|
||||||
discard
|
discard
|
||||||
else:
|
of tyForward:
|
||||||
if not isOrdinalType(typ):
|
errorUndeclaredIdentifier(c, n.sons[0].info, typ.sym.name.s)
|
||||||
localError(c.config, n.info, "selector must be of an ordinal type, float or string")
|
elif not isOrdinalType(typ):
|
||||||
|
localError(c.config, n.sons[0].info, "selector must be of an ordinal type, float or string")
|
||||||
for i in 1 ..< sonsLen(n):
|
for i in 1 ..< sonsLen(n):
|
||||||
var b = copyTree(n.sons[i])
|
var b = copyTree(n.sons[i])
|
||||||
addSon(a, b)
|
addSon(a, b)
|
||||||
|
|||||||
Reference in New Issue
Block a user