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
19|defa2="".foo2[Any]
|^^^^^^^^^^^^| method (usingx$2: Foo): [A] =>Nothing does not take typeparameters26|defc2= foo2("")[Any]
|^^^^^^^^^^^^^| method (usingx$2: Foo): [A] =>Nothing does not take typeparameters2 errors found
Expectation
It should be possible to explicitly pass type parameters to a method defined in an extension which has trailing using clauses just as it is possible when using an implicit class instead of an extension. For consistency this should be possible also when calling the extension method as a normal method (without a dot)
The text was updated successfully, but these errors were encountered:
Handle adaptation of a method that takes using clause and then a type parameter.
When passing a type argument, we have to first insert an implicit argument for
the using clause.
Fixesscala#11168
Minimized code
Output
Expectation
It should be possible to explicitly pass type parameters to a method defined in an extension which has trailing using clauses just as it is possible when using an implicit class instead of an extension. For consistency this should be possible also when calling the extension method as a normal method (without a dot)
The text was updated successfully, but these errors were encountered: