summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorcooldome <ariabushenko@gmail.com>2021-01-06 10:47:03 +0000
committerGitHub <noreply@github.com>2021-01-06 10:47:03 +0000
commit58b9191354aa99ac2d17f9a7db3bdf239c7bce6b (patch)
tree898a75a56588a230a8b4862d144ee433c97b8cc0 /compiler
parentd721f5cecad90a0aa7e2ea144607ffafdf647e31 (diff)
downloadNim-58b9191354aa99ac2d17f9a7db3bdf239c7bce6b.tar.gz
fix #16516 method dispatch for sink args (#16594)
* fix #16516

* fix comment

* Trigger build
Diffstat (limited to 'compiler')
-rw-r--r--compiler/cgmeth.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/cgmeth.nim b/compiler/cgmeth.nim
index 5c5d35093..a995804c7 100644
--- a/compiler/cgmeth.nim
+++ b/compiler/cgmeth.nim
@@ -67,7 +67,7 @@ proc sameMethodBucket(a, b: PSym; multiMethods: bool): MethodResult =
     while true:
       aa = skipTypes(aa, {tyGenericInst, tyAlias})
       bb = skipTypes(bb, {tyGenericInst, tyAlias})
-      if aa.kind == bb.kind and aa.kind in {tyVar, tyPtr, tyRef, tyLent}:
+      if aa.kind == bb.kind and aa.kind in {tyVar, tyPtr, tyRef, tyLent, tySink}:
         aa = aa.lastSon
         bb = bb.lastSon
       else:
1'>141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285