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
def foo = given (v: Int) => (x: Int) => v + x
implied myInt for Int = 4
Both foo.apply(7) and (foo given 4)(7) works fine, but foo(7) fails to compile (method apply in trait ImplicitFunction1 does not take more parameters).
Tested with Dotty 0.13.0-RC1 and 0.14.0-bin-20190220-60c4bf8-NIGHTLY.
The text was updated successfully, but these errors were encountered:
`insertApplyOrImplicit` checks whether we already have an inserted apply
in order to prevent an infinite insertion sequence. This criterion should
be restricted to just look at Select nodes. Once an inserted `apply`
is in fact applied it should not count anymore.
Also: Fix printing of FunProtos for "given" arguments.
Given a function definition
Both
foo.apply(7)
and(foo given 4)(7)
works fine, butfoo(7)
fails to compile (method apply in trait ImplicitFunction1 does not take more parameters).Tested with Dotty 0.13.0-RC1 and 0.14.0-bin-20190220-60c4bf8-NIGHTLY.
The text was updated successfully, but these errors were encountered: