From 04b91b0d3b454eb9119a0b9700e0eb0cce6fe815 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Tue, 13 Dec 2016 11:02:21 +0100 Subject: [PATCH] sighashes: multi-methods should work now --- compiler/sighashes.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/sighashes.nim b/compiler/sighashes.nim index 02a548f875..ffe614efc8 100644 --- a/compiler/sighashes.nim +++ b/compiler/sighashes.nim @@ -263,6 +263,8 @@ proc hashProc*(s: PSym): SigHash = c &= p.name.s c &= "." c &= m.name.s + if sfDispatcher in s.flags: + c &= ".dispatcher" # so that createThread[void]() (aka generic specialization) gets a unique # hash, we also hash the line information. This is pretty bad, but the best # solution for now: