parent
82319ef00d
commit
7d32425a57
1 changed files with 1 additions and 1 deletions
|
|
@ -656,7 +656,7 @@ proc pragmaRaisesOrTags(c: PContext, n: PNode) =
|
||||||
x.typ = makeTypeFromExpr(c, x)
|
x.typ = makeTypeFromExpr(c, x)
|
||||||
else:
|
else:
|
||||||
var t = skipTypes(c.semTypeNode(c, x, nil), skipPtrs)
|
var t = skipTypes(c.semTypeNode(c, x, nil), skipPtrs)
|
||||||
if t.kind != tyObject and not t.isMetaType:
|
if t.kind notin {tyObject, tyOr}:
|
||||||
localError(c.config, x.info, errGenerated, "invalid type for raises/tags list")
|
localError(c.config, x.info, errGenerated, "invalid type for raises/tags list")
|
||||||
x.typ = t
|
x.typ = t
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue