diff options
author | Ryan McConnell <rammcconnell@gmail.com> | 2024-01-06 05:50:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-06 06:50:09 +0100 |
commit | a4f3bf374238df96f0982b7106e3702da6b485b1 (patch) | |
tree | 65b803a89211ffefcf0dc4d0cbfa3842e79f3581 /tests/lookups/issue_23172/m23172.nim | |
parent | 3dee1a3e4c81448b67b75068fef06a121f320758 (diff) | |
download | Nim-a4f3bf374238df96f0982b7106e3702da6b485b1.tar.gz |
Fixes #23172 (#23173)
#23172
Diffstat (limited to 'tests/lookups/issue_23172/m23172.nim')
-rw-r--r-- | tests/lookups/issue_23172/m23172.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lookups/issue_23172/m23172.nim b/tests/lookups/issue_23172/m23172.nim new file mode 100644 index 000000000..36af48761 --- /dev/null +++ b/tests/lookups/issue_23172/m23172.nim @@ -0,0 +1,6 @@ +type + Foo* = object + Bar* = object + +func `$`*(x: Foo | Bar): string = + "X" |