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:Test.scala:19:15
[error] 19|giveninlinex: Int=0
[error] |^
[error] | anonymous givencannot be abstract
[error] -- [E067] SyntaxError:Test.scala:19:8
[error] 19|giveninlinex: Int=0
[error] |^
[error] |Declaration of giveninstance given_inline not allowed here: only classes can have declared but undefined members
[error] two errors found
[error] two errors found
Expectation
The correct order of given & inline is: inline given. I'd expect the compiler to give a better error message, indicating how to fix the problem.
The text was updated successfully, but these errors were encountered:
Compiler version
3.0.0-RC3
Minimized example
Output
Expectation
The correct order of given & inline is:
inline given
. I'd expect the compiler to give a better error message, indicating how to fix the problem.The text was updated successfully, but these errors were encountered: