-
The compiler seems to choose a When I create a custom interpolated string handler, is there a way to tell the compiler to use a certain method (and its overloads) for similar scenarios? |
Beta Was this translation helpful? Give feedback.
Answered by
333fred
Jul 22, 2024
Replies: 1 comment 4 replies
-
Can you provide an example? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No,
OverloadResolutionPriority
wouldn't help with something like this. Using an interpolated string as a string is a special case, and handled specially by the compiler because it can guarantee observed semantics.