From c314f8e65ef1d7dabc8b6b36ac4e3a925a313e95 Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 2 Jul 2015 23:04:46 +0200 Subject: [PATCH] fixes #3040 --- compiler/semtypes.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index 5c3880fa57..ff68373c4b 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -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: