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] -- Error: X2.scala:5:13
[error] 5 | the[LineNo]
[error] | ^
[error] |no implicit argument of type blah.AsObject.LineNo was found for parameter x of method the in object DottyPredef.
[error] |I found:
[error] |
[error] | {
[error] | <empty> :blah.AsObject.LineNo
[error] | }
[error] |
[error] |But method LineNo_instance in object LineNo does not match type blah.AsObject.LineNo.
[error] one error found
expectation
There shouldn't be any compilation errors. Putting LineNo in an object should be the same as putting it in a package.
The text was updated successfully, but these errors were encountered:
minimized code
Two files:
In this, the bodies of
AsObject
andAsPackage
are exactly the same.error message
expectation
There shouldn't be any compilation errors. Putting
LineNo
in an object should be the same as putting it in a package.The text was updated successfully, but these errors were encountered: