0

When I define two extension functions with the same signature I get an conflicting overloads error, even if the extension functions are defined in different files.

Does this make different libraries that define the same extension function incompatible to each other? Say, both libraries declare extension functions on String with the same name and parameters. Is there still any way to use these two libraries in the same project?

Dakkaron
  • 5,930
  • 2
  • 36
  • 51
  • Thank you. Neither Google nor Stackoverflow turned this up. – Dakkaron May 22 '17 at 11:43
  • Yes, they will clash, and that's why it is always a good idea, especially if you are writing a library, to use packages, so that there's a way to keep them apart (then the user can choose from which package to import). – Jesper May 22 '17 at 11:44

0 Answers0