diff options
author | Araq <rumpf_a@web.de> | 2014-11-19 23:40:26 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-11-19 23:40:26 +0100 |
commit | abb2c210474b383045dd309dad6731009f07f7f9 (patch) | |
tree | d13809f074b780eaaed2ef3cb1ae487ef26bae1c /compiler | |
parent | 32ec5af60a5d89fca314c3b432d225f1e248953f (diff) | |
download | Nim-abb2c210474b383045dd309dad6731009f07f7f9.tar.gz |
fixes #836
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/sigmatch.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index e44cd7049..266236bf4 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -242,6 +242,9 @@ proc concreteType(c: TCandidate, t: PType): PType = addSonSkipIntLit(result, t.sons[1]) # XXX: semantic checking for the type? of tyNil: result = nil # what should it be? + of tySequence, tySet: + if t.sons[0].kind == tyEmpty: result = nil + else: result = t of tyGenericParam, tyAnything: result = t while true: |