summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-01-11 21:56:05 +0100
committerAraq <rumpf_a@web.de>2014-01-11 21:56:05 +0100
commit346443d1b552574c1f259cd9e6080c2d0063fa9c (patch)
tree0f319406b8312ed325bbb1ef1ea5b7ef74662e07 /compiler
parent437cfa73abd8fdf878cc2af2c44acbc4b6ec3a56 (diff)
downloadNim-346443d1b552574c1f259cd9e6080c2d0063fa9c.tar.gz
case consistency improvements
Diffstat (limited to 'compiler')
-rw-r--r--compiler/parampatterns.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/parampatterns.nim b/compiler/parampatterns.nim
index be0f995b6..e94068776 100644
--- a/compiler/parampatterns.nim
+++ b/compiler/parampatterns.nim
@@ -216,7 +216,7 @@ proc isAssignable*(owner: PSym, n: PNode): TAssignableResult =
   of nkObjUpConv, nkObjDownConv, nkCheckedFieldExpr: 
     result = isAssignable(owner, n.sons[0])
   else:
-    nil
+    discard
 
 proc matchNodeKinds*(p, n: PNode): bool =
   # matches the parameter constraint 'p' against the concrete AST 'n'.