If your overload is in scope it will call your procedure as it's the most
specific. Now this is not true if a generic procedure `bind` s shut a procedure:
proc doThing(a: auto) =
bind `$`
echo $a
type A = object
proc `$`(a: A): string = "Hello"
doThing(A())
Run
- Enums, custom overloads & redundant strings drkameleon
- Enums, custom overloads & redundant strings ElegantBeef
- Enums, custom overloads & redundant strings drkameleon
- Enums, custom overloads & redundant strings ElegantBeef
- Enums, custom overloads & redundant strin... drkameleon
- Enums, custom overloads & redundant ... drkameleon
- Enums, custom overloads & redund... drkameleon
