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
scala> scala> val a = 42
| val a: Int = 42
|
| scala> def foo(b: Int) = a + b
| def foo(b: Int): Int
// Detected repl transcript. Paste more, or ctrl-D to finish.
// Replaying 2 commands from transcript.
scala> val a = 42
val a: Int = 42
scala> def foo(b: Int) = a + b
def foo(b: Int): Int
|
|
def foo(b: Int): Int
^
On line 2: error: '=' expected but eof found.
Let's try something else.
scala> scala> val a = 42
| val a: Int = 42
// Detected repl transcript. Paste more, or ctrl-D to finish.
// Replaying 1 commands from transcript.
scala> val a = 42
val a: Int = 42
val a: Int = 42
^
On line 2: error: a is already defined as value a
IIUC he tries to interpret every pasted line, including the results.
The text was updated successfully, but these errors were encountered:
Let's try something else.
IIUC he tries to interpret every pasted line, including the results.
The text was updated successfully, but these errors were encountered: