We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WRONG_OVERLOADING_FUNCTION_ARGUMENTS
WRONG_OVERLOADING_FUNCTION_ARGUMENTS is triggered even if the functions have differing visibility and/or modifiers (abstract, suspend, etc.)
Example with different visibility:
public fun doStuff() { doStuff(1) } private fun doStuff(x: Int) { println(x) }
Example with inline:
public fun doStuff() { doStuff(1) } public inline fun doStuff(x: Int) { println(x) }
WRONG_OVERLOADING_FUNCTION_ARGUMENTS should only trigger if the function have identical visibility and identical modifiers.
WRONG_OVERLOADING_FUNCTION_ARGUMENTS ignores function visibility and modifiers.
See above examples.
The text was updated successfully, but these errors were encountered:
Hello! thank you for your report, yes, definitely a bug - should be fixed
Sorry, something went wrong.
I am even surprised that we are so smart that we have such inspection 😄 Also interesting bug:
We don't handle the following case:
fun foo(a: Double) {} fun foo(a: Double, b: Int) {}
@jgberry thank you for your ideas, we fixed it and will take it to the next release
orchestr7
Successfully merging a pull request may close this issue.
Describe the bug
WRONG_OVERLOADING_FUNCTION_ARGUMENTS
is triggered even if the functions have differing visibility and/or modifiers (abstract, suspend, etc.)Example with different visibility:
Example with inline:
Expected behavior
WRONG_OVERLOADING_FUNCTION_ARGUMENTS
should only trigger if the function have identical visibility and identical modifiers.Observed behavior
WRONG_OVERLOADING_FUNCTION_ARGUMENTS
ignores function visibility and modifiers.Steps to Reproduce
See above examples.
Environment information
The text was updated successfully, but these errors were encountered: