mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-18 02:27:10 +00:00
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 <>
8 lines
144 B
Nim
8 lines
144 B
Nim
import std/tables
|
|
|
|
var a: Table[string, float]
|
|
|
|
type Value*[T] = object
|
|
table: Table[string, Value[T]]
|
|
|
|
discard toTable({"a": Value[float]()}) |