fixes #10136
This commit is contained in:
parent
451377f737
commit
ab99bdfc40
1 changed files with 2 additions and 2 deletions
|
|
@ -403,8 +403,8 @@ proc semIs(c: PContext, n: PNode, flags: TExprFlags): PNode =
|
||||||
n[1] = makeTypeSymNode(c, lhsType, n[1].info)
|
n[1] = makeTypeSymNode(c, lhsType, n[1].info)
|
||||||
lhsType = n[1].typ
|
lhsType = n[1].typ
|
||||||
else:
|
else:
|
||||||
internalAssert c.config, lhsType.base.kind != tyNone
|
if lhsType.base.kind == tyNone or
|
||||||
if c.inGenericContext > 0 and lhsType.base.containsGenericType:
|
(c.inGenericContext > 0 and lhsType.base.containsGenericType):
|
||||||
# BUGFIX: don't evaluate this too early: ``T is void``
|
# BUGFIX: don't evaluate this too early: ``T is void``
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue