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: f1.scala:2:0---------------------------------------------------------2|@FunctionalInterfaceclassB|^|end of statement expected but '@' found
1 error found
expectation
Compiles cleanly. Dropping the space fixes it. Or declaring it's in a package.
You can use any annotation.
Without the curly brackets the errors are on later parts:
classA@FunctionalInterfaceclassB
--Error: f3.scala:2:21--------------------------------------------------------2|@FunctionalInterfaceclassB|^^^^^| end of statement expected but 'class' found
-- [E040] SyntaxError: f3.scala:2:27------------------------------------------2|@FunctionalInterfaceclassB|^|';' expected, but identifier found
2 errors found
minimized code
Compilation output
expectation
Compiles cleanly. Dropping the space fixes it. Or declaring it's in a package.
You can use any annotation.
Without the curly brackets the errors are on later parts:
Using HEAD of master:
The text was updated successfully, but these errors were encountered: