Is there a workaround for this? AppCode (and Intel...
# kotlin-native
r
Is there a workaround for this? AppCode (and IntelliJ) don’t seem to understand what is the overridden function, and says I changed the parameter name and am using an incorrect return type, but this other function also exists and is defined just next to the others
k
I have not been able to find one
s
You can add
@Suppress("CONFLICTING_OVERLOADS", "PARAMETER_NAME_CHANGED_ON_OVERRIDE")
on the method to calm the compiler.
1
r
@Sam I don’t think you can
@Suppress
errors
g
It does remove the warning but not the
wrong type
error
s
I didn't see the error, just the warning. That signature matches the documentation on Apple's site. 🤔
k
yes, but the IDE can't handle multiple methods with the same name and different return types
that's an apple-ism