diff options
author | Zahary Karadjov <zahary@gmail.com> | 2013-05-26 11:14:03 +0300 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2013-05-26 13:59:39 +0300 |
commit | 46813bbe4e1423181521d4792b9af7593f48fa1f (patch) | |
tree | 8a56266270506f483ba93c71ac34d491b6f2e4dd /compiler/semstmts.nim | |
parent | bfff1ac8b2435595351194f6c4b1268d38301401 (diff) | |
download | Nim-46813bbe4e1423181521d4792b9af7593f48fa1f.tar.gz |
static and default params for generics
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 b63c20548..9ae8aaca6 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -710,7 +710,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 |