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
It is the result of bug in Scala (SI-8821) and a strange behavior of the worksheet.
The worksheet wraps the code inside the execute method only from the first expression. If the first (and the last) elements of the worksheet are class/object/trait definition, they stay outside of the execute.
Everything should be inside the execute method, otherwise it could some inconsistency, like class and its companion object not in the same context.
The text was updated successfully, but these errors were encountered:
The following worksheet compiles and executes:
While the following fails, with a blinking error:
It is the result of bug in Scala (SI-8821) and a strange behavior of the worksheet.
The worksheet wraps the code inside the
execute
method only from the first expression. If the first (and the last) elements of the worksheet are class/object/trait definition, they stay outside of theexecute
.Everything should be inside the
execute
method, otherwise it could some inconsistency, like class and its companion object not in the same context.The text was updated successfully, but these errors were encountered: