fixes #3040
This commit is contained in:
parent
65c1b0c128
commit
c314f8e65e
1 changed files with 1 additions and 0 deletions
|
|
@ -1085,6 +1085,7 @@ proc semTypeExpr(c: PContext, n: PNode): PType =
|
|||
result = n.typ.base
|
||||
else:
|
||||
localError(n.info, errTypeExpected, n.renderTree)
|
||||
result = errorType(c)
|
||||
|
||||
proc freshType(res, prev: PType): PType {.inline.} =
|
||||
if prev.isNil:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue