mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 10:22:15 +00:00
fixes #3040
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user