>>> C = Class {x = Int}
>>> C
<class '<module>.C'>
>>> C.
... method self = self::x
Error[#0126]: File <stdin>, line 1,
1 |
: -
: `- exists a similar name variable:
NameError: C is not defined
At present, in the REPL, methods must be defined at the same time as classes are defined. However, in a script, the methods part can be separated from the class definition; REPL should follow it.
At present, in the REPL, methods must be defined at the same time as classes are defined. However, in a script, the methods part can be separated from the class definition; REPL should follow it.