From a4f3bf374238df96f0982b7106e3702da6b485b1 Mon Sep 17 00:00:00 2001 From: Ryan McConnell Date: Sat, 6 Jan 2024 05:50:09 +0000 Subject: Fixes #23172 (#23173) #23172 --- tests/lookups/issue_23172/m23172.nim | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/lookups/issue_23172/m23172.nim (limited to 'tests/lookups/issue_23172/m23172.nim') 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" -- cgit 1.4.1-2-gfad0