diff options
author | Araq <rumpf_a@web.de> | 2011-07-08 01:29:15 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-07-08 01:29:15 +0200 |
commit | 99bcc233cd8fb3bb9b6f3f0857e477dd9b33c9e8 (patch) | |
tree | 2259a14b53ec4fc6f8dedc311eb5e6b837f44180 /compiler/sigmatch.nim | |
parent | 170573a87f0df749bdb91126c930826ba5329e95 (diff) | |
download | Nim-99bcc233cd8fb3bb9b6f3f0857e477dd9b33c9e8.tar.gz |
bugfix: 'set' overloadable; further steps for multi threading support
Diffstat (limited to 'compiler/sigmatch.nim')
-rwxr-xr-x | compiler/sigmatch.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index ac1429e4e..ec689d315 100755 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -220,6 +220,9 @@ proc procTypeRel(mapping: var TIdTable, f, a: PType): TTypeRelation = result = isNone if tfNoSideEffect in f.flags and tfNoSideEffect notin a.flags: result = isNone + elif tfThread in f.flags and a.flags * {tfThread, tfNoSideEffect} == {}: + # noSideEffect implies ``tfThread``! + result = isNone else: nil proc typeRel(mapping: var TIdTable, f, a: PType): TTypeRelation = |