Minor bug switching async statements to C# Program

This is not a new issue as it occurs with LinqPad 5, 7 and 8 (including an old V5 version from 2019)


Start a new query and paste the following

await Util.ReadLineAsync("?");

This will change the Language to C# Statements.

Press Ctrl-3 or select C# Program from the language combobox.

It correctly changes your query to a program, but leaves the Language ComboBox as C# Statements (see screenshot below) and if you try to run the query it does not do anything.

If you try to switch to C# Program mode again then it works correctly and also works correctly if the query is non-async.


Sign In or Register to comment.