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
The following code are compiled without error.
However, if the line "implicitlyBar" is commented out, I get a error "could not find implicit value for parameter e: Bar".
@paulp said:
This is all the expected behavior, but I can't find it explained in the spec. We're overdue to get something specified about the significant influence which declaration of return type has on implicit eligibility.
The following code are compiled without error.
However, if the line "implicitlyBar" is commented out, I get a error "could not find implicit value for parameter e: Bar".
Inspecting an output of -Xprint:typer, the accessor method for implicit value Bar.bar is not generated.
When explicitly declare the type of Bar.bar, it is compiled without error.
However, the following code cannot be compiled.
Moreover, when reordering class definition, the code is compiled.
Is this intented behavior?
The text was updated successfully, but these errors were encountered: