Fix #22826: Don't skip generic instances in type comparison (#22828)

Close #22826

I am not sure why this code skips generic insts, so letting CI tell me.
Update: It has told me nothing. Maybe someone knows during review.

Issue itself seems to be that the generic instance is skipped thus it
ends up being just `float` which makes it use the wrong generic instance
of the proc because it matches the one in cache

---------

Co-authored-by: SirOlaf <>
(cherry picked from commit c13c48500b)
This commit is contained in:
SirOlaf
2023-10-21 22:00:16 +02:00
committed by narimiran
parent 74c4b23e0d
commit 40ee3a950e
2 changed files with 12 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
import std/tables
var a: Table[string, float]
type Value*[T] = object
table: Table[string, Value[T]]
discard toTable({"a": Value[float]()})