Skip to content

Commit

Permalink
non-ideal fix for typetraits test
Browse files Browse the repository at this point in the history
  • Loading branch information
saem committed Jan 16, 2024
1 parent 82c7c2f commit a32a8e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/sem/sem.nim
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,8 @@ proc semAfterMacroCall(c: PContext, call, macroResult: PNode,
let err = newError(c.config, result, PAstDiag(kind: adSemExpressionHasNoType))
localReport(c.config, err)
result = newSymNode(errorSym(c, result, err))
elif typ.kind == tyError and typ.n != nil and typ.n.kind == nkError:
result = typ.n
else:
result.typ = makeTypeDesc(c, typ)
else:
Expand Down

0 comments on commit a32a8e1

Please sign in to comment.