Marc Knaup
08/09/2020, 5:40 PM@LowPriorityInOverloadResolution
should be public. It’s so useful to resolve ambiguities 🙂ilya.gorbunov
08/12/2020, 3:39 PMLowPriorityInOverloadResolution
may look as a last-resort hammer to solve an ambiguity, but it's inherently limited because it only helps if there are no more than two conflicting overloads.
It's better to find a way to resolve such conflict by means of existing language features than to manually hack the overload resolution, see for example this situation: https://youtrack.jetbrains.com/issue/KT-16255#focus=Comments-27-1904640.0-0
Please report your cases when you wanted to use this annotation, so we could consider it on case-by-case basis.
Meanwhile, we have some plans of making such annotations public, but requiring an explicit opt-in.Marc Knaup
08/12/2020, 4:06 PM