mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 14:23:45 +00:00
This fixes a regression introduced in #20990 . When a group referencing is used and one of the overloaded symbols is in `include`d file, then `nim doc` crashes. The fix is in distinguishing (the index of) module and file where the symbol is defined, and using only module as the key in hash table for group referencing.
7 lines
245 B
Nim
7 lines
245 B
Nim
proc funWithGenerics*[T, U: SomeFloat](a: T, b: U) = discard
|
|
|
|
# We check that presence of overloaded `fn2` here does not break
|
|
# referencing in the "parent" file (the one that includes this one)
|
|
proc fn2*(x: int, y: float, z: float) =
|
|
discard
|