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
[error] 10|newBar()
[error] |^^^^^^^^^
[error] |Found: foo.bar.Bar
[error] |Required: foo.Bar²
[error] |
[error] |where: Bar is a classinobjectbar
[error] |Bar² is a typein the top-level definitions in packagefoo
[error] |
[error] | longer explanation available when compiling with`-explain`
Expectation
Successful compilation since bar.Bar.apply is in scope of opaque type foo.Bar
The text was updated successfully, but these errors were encountered:
This is as designed, AFAICT. The top-level opaque type desugars into being a member of a "package object", as per the spec of top-level definitions. So it is equivalent to
Compiler version
3.4.0
Minimized code
Output
Expectation
Successful compilation since
bar.Bar.apply
is in scope of opaque typefoo.Bar
The text was updated successfully, but these errors were encountered: