You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I know Paul has some code implementing Levenshtein difference, so maybe it could even check for similar names (for typos)?
E. g. something like hasSimilarName(inclazz: Symbol, member: Symbol, levenshteinDifference: Int = 0)
The text was updated successfully, but these errors were encountered:
The error messages related to inheritance are generally pretty decent, if arguments are the same:
But if arguments differ, the error message is not very helpful:
It would be nice if in case of an error, the compiler would check if there is a signature with the same name, but different arguments.
The code in questions is here: https://github.com/scala/scala/blob/master/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala#L756
As far as I know Paul has some code implementing Levenshtein difference, so maybe it could even check for similar names (for typos)?
E. g. something like
hasSimilarName(inclazz: Symbol, member: Symbol, levenshteinDifference: Int = 0)
The text was updated successfully, but these errors were encountered: