diff options
author | Zahary Karadjov <zahary@gmail.com> | 2013-08-19 01:29:37 +0300 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2013-08-19 01:29:37 +0300 |
commit | f760bc243b957ec8ebb529b9eadea53fc93adca5 (patch) | |
tree | 0f1bb39c6a1362541eab02819f8e2c75c826b9d1 /compiler/semstmts.nim | |
parent | ea54aa386c670f113fe4151da41dd2f4f95312cf (diff) | |
download | Nim-f760bc243b957ec8ebb529b9eadea53fc93adca5.tar.gz |
Revert "Revert "static and default params for generics""
This reverts commit 0662ec4a434f4656b5afc486bc4ebaab82c52da6.
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r-- | compiler/semstmts.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index 4de1f9151..33c0adac1 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -721,7 +721,8 @@ proc typeSectionRightSidePass(c: PContext, n: PNode) = # TGObj[T] = object # TAlias[T] = TGObj[T] # - a.sons[1] = semGenericParamList(c, a.sons[1], s.typ) + s.typ.n = semGenericParamList(c, a.sons[1], s.typ) + a.sons[1] = s.typ.n s.typ.size = -1 # could not be computed properly # we fill it out later. For magic generics like 'seq', it won't be filled # so we use tyEmpty instead of nil to not crash for strange conversions |