summary refs log tree commit diff stats
path: root/compiler/sigmatch.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-04-20 12:10:23 +0200
committerAraq <rumpf_a@web.de>2014-04-20 12:10:23 +0200
commitc80d563afb7e095b6e9ca4353fb02ae7586ed500 (patch)
treea74368af07770442ad1c33c49adbf9ced002cbb6 /compiler/sigmatch.nim
parent13b941d8eebbaf64ea69873d131569c78de2529d (diff)
downloadNim-c80d563afb7e095b6e9ca4353fb02ae7586ed500.tar.gz
actors compile again
Diffstat (limited to 'compiler/sigmatch.nim')
-rw-r--r--compiler/sigmatch.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim
index 5d3ed05f7..673c7f083 100644
--- a/compiler/sigmatch.nim
+++ b/compiler/sigmatch.nim
@@ -148,6 +148,9 @@ proc sumGeneric(t: PType): int =
       result = ord(t.kind == tyGenericInvokation)
       for i in 0 .. <t.len: result += t.sons[i].sumGeneric
       break
+    of tyProc:
+      # proc matche proc better than 'stmt' to disambiguate 'spawn'
+      return 1
     of tyGenericParam, tyExpr, tyStatic, tyStmt, tyTypeDesc: break
     else: return 0