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
Entering curly braces ({}) in strings manipulates the current indentation level, despite being regular characters in this context.
This can be reproduced by entering the following snippet:
{var_="}";
Pressing Enter at this point will dedent the next line, which is unexpected. After entering a statement, adding a semicolon (;) or closing curly brace (}) will fix the indentation, like so:
{var_="}";
Console.WriteLine()// putting a ; or } here will fix the indentation
Because the level of indentation is now desynced, closing the code block by adding another closing brace (}) will set the indentation level to -1. Pressing Shift+Enter at this point will crash the REPL; see #378.
The text was updated successfully, but these errors were encountered:
Version
C# REPL 0.6.7+d2955f13e744320cd6331c484e1286c3ed4f8612
What happened?
Entering curly braces (
{}
) in strings manipulates the current indentation level, despite being regular characters in this context.This can be reproduced by entering the following snippet:
Pressing Enter at this point will dedent the next line, which is unexpected. After entering a statement, adding a semicolon (
;
) or closing curly brace (}
) will fix the indentation, like so:Because the level of indentation is now desynced, closing the code block by adding another closing brace (
}
) will set the indentation level to-1
. Pressing Shift+Enter at this point will crash the REPL; see #378.The text was updated successfully, but these errors were encountered: