https://kotlinlang.org logo
Title
u

U75957

07/02/2019, 12:20 PM
I need to overload some stdlib extension. It works, but in some cases show incorrect
Type missmatch
until I write all parameters.
g

gildor

07/02/2019, 12:24 PM
Looks like some resolution order in case of error, apparently just closest resolved function is reported. Does it cause any issues? I mean this code invalid in any case before you specify second param
c

Czar

07/02/2019, 12:31 PM
Until you import your extension, IDE doesn't know it should check it, so you get type mismatch instead of candidate not found.
@Czar Are you sure that you carefully assessed the problem and checked your offer?
c

Czar

07/02/2019, 12:40 PM
@U75957 You caught me there 🙂 Yeah, I didn't read all the code in the screenshot.