Extensions and backward compatibility

Internally, Kotlin has an Annotation that does exactly that. From the comment on that annotation:

Specifies that a corresponding member has the lowest priority in overload resolution.

It is internal though, but there is a small hack to be able to use it. Please refer to this post on how to exactly do it. It should only take you about 2 minutes lol.

2 Likes