|
|
|
|
|
by lukebuehler
4421 days ago
|
|
the thing is you can't really mix class definitions and straight scripting lines in one execution. So what you need to do, is execute the class first and then execute the other part. For the MyMath example you'd just select the lines for that class, press Alt+Enter.
And then run:
> MyMath.Fibonacci(12); With your example, you would enter following in the REPL:
> public static class Foo { public static string B; }
> Foo.B = "hi"
> Foo.B
hi
> |
|