diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-07-08 10:34:12 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-07-08 10:34:12 +0200 |
commit | b47d9b7b917202ab3b7f1632f8d9462c5f76e869 (patch) | |
tree | 9b4c44ec1846c2ce276948ba37631cbef7e0ba26 /compiler/patterns.nim | |
parent | caa7f42e8e75e273ab3f52ada30aed4e06a817d9 (diff) | |
download | Nim-b47d9b7b917202ab3b7f1632f8d9462c5f76e869.tar.gz |
fixes #4371
Diffstat (limited to 'compiler/patterns.nim')
-rw-r--r-- | compiler/patterns.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/patterns.nim b/compiler/patterns.nim index 2336e44e7..09b8d3305 100644 --- a/compiler/patterns.nim +++ b/compiler/patterns.nim @@ -75,7 +75,7 @@ proc checkTypes(c: PPatternContext, p: PSym, n: PNode): bool = result = matchNodeKinds(p.constraint, n) if not result: return if isNil(n.typ): - result = p.typ.kind in {tyEmpty, tyStmt} + result = p.typ.kind in {tyVoid, tyStmt} else: result = sigmatch.argtypeMatches(c.c, p.typ, n.typ) |