diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-03-02 16:16:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-02 09:16:28 +0100 |
commit | 38d299dfc0c9f1315cf412aa76cb041642d62f07 (patch) | |
tree | 69c6929743c4311facb3b4f428e6aa91e6563955 /tests/ccgbugs/t20139.nim | |
parent | 50baf21eacfaf1c9d6949bf2b2e9f931b0e1509c (diff) | |
download | Nim-38d299dfc0c9f1315cf412aa76cb041642d62f07.tar.gz |
fixes #20139; hash types based on its path relative to its package path (#21274) [backport:1.6]
* fixes #20139; hash types based on its path relative its project * add a test case * fixes procs * better implementation and test case --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Diffstat (limited to 'tests/ccgbugs/t20139.nim')
-rw-r--r-- | tests/ccgbugs/t20139.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ccgbugs/t20139.nim b/tests/ccgbugs/t20139.nim new file mode 100644 index 000000000..4592b994d --- /dev/null +++ b/tests/ccgbugs/t20139.nim @@ -0,0 +1,10 @@ +discard """ + joinable: false +""" + +# bug #20139 +import m1/defs as md1 +import m2/defs as md2 + +doAssert $(md1.MyObj(field1: 1)) == """(field1: 1, s: "", ch: '\x00')""" +doAssert $(md2.MyObj(field1: 1)) == """(s: "", field1: 1, ch: '\x00')""" |