Use TopLevelDeclarations analysis mode in REPL
#KT-12564 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
>>> val x = 1
|
||||
>>> x = 2
|
||||
error: val cannot be reassigned
|
||||
x = 2
|
||||
^
|
||||
>>> x++
|
||||
error: val cannot be reassigned
|
||||
x++
|
||||
^
|
||||
>>> x
|
||||
1
|
||||
Reference in New Issue
Block a user