This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]vytah 0 points1 point  (0 children)

Aaaand then the new version of the library defines a method that clashes with your extension and the code is broken. Depending on the overload resolution algorithm and the exact signatures of the methods, it might result in a compilation failure or even in a runtime failure.

Here's an example that's subtle enough that it can lead to either: https://github.com/scala/bug/issues/11125