summary refs log tree commit diff stats
path: root/nimdoc/testproject/subdir
diff options
context:
space:
mode:
authorAndrey Makarov <ph.makarov@gmail.com>2023-04-02 11:32:36 +0300
committerGitHub <noreply@github.com>2023-04-02 10:32:36 +0200
commit63b4b3c5b8c930ffc271c5e4e1a446e8616b2571 (patch)
treee5c589c3477f1f0beebae87e510b8b522ffcc830 /nimdoc/testproject/subdir
parent0c6f14af048c4bd61c91552af79c003dfd34601e (diff)
downloadNim-63b4b3c5b8c930ffc271c5e4e1a446e8616b2571.tar.gz
Fix nim doc crash with group referencing & include (#21600)
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.
Diffstat (limited to 'nimdoc/testproject/subdir')
-rw-r--r--nimdoc/testproject/subdir/subdir_b/utils_helpers.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/nimdoc/testproject/subdir/subdir_b/utils_helpers.nim b/nimdoc/testproject/subdir/subdir_b/utils_helpers.nim
index 2c45ffb83..d3f5edd29 100644
--- a/nimdoc/testproject/subdir/subdir_b/utils_helpers.nim
+++ b/nimdoc/testproject/subdir/subdir_b/utils_helpers.nim
@@ -1 +1,6 @@
 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