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
Fix regression #17245: Overloaded methods with ClassTags (#18286)
The problem lied with slightly adjusted unapply of FunctionOf in a
previous PR, which caused different behavior in `resolveOverloaded`,
where due to a pattern match into a FunctionOf
`resolveOverloaded1` would return no candidates, causing more issues
later on.
To keep the new behavior of FunctionOf unapply (which as a side-effect
ended up fixing few issues represented with added tests), with the previous
behavior of overloaded functions, we allow the method candidate
filtering to fallback from the FunctionOf candidate filtering into the
previous behavior in case no candidates are kept. This also fixes an
additional case, which is not part of the regression, but produces
an incorrect error in similar manner.
Fixes#17245
0 commit comments