diff options
author | Zahary Karadjov <zahary@gmail.com> | 2014-03-15 19:23:20 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2014-03-16 20:42:06 +0200 |
commit | 37b199d34ae198872f061d9a4155539138b34c87 (patch) | |
tree | 3309c8ba5f394e5cfbb65ffa51f1c7c96e6eb7a3 /compiler/semexprs.nim | |
parent | 4d2c948281ee1ad38f8098d1b454dc4787441e8b (diff) | |
download | Nim-37b199d34ae198872f061d9a4155539138b34c87.tar.gz |
first phase of tyGenericParam reforms needed for static params
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r-- | compiler/semexprs.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index ba2847835..133b4ac1e 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -117,8 +117,8 @@ proc semSym(c: PContext, n: PNode, s: PSym, flags: TExprFlags): PNode = elif s.ast != nil: result = semExpr(c, s.ast) else: - internalError(n.info, "no default for") - result = emptyNode + n.typ = s.typ + return n of skType: markUsed(n, s) result = newSymNode(s, n.info) |