csharp-tmLanguage icon indicating copy to clipboard operation
csharp-tmLanguage copied to clipboard

boolean literals in `when` clause of `switch` statement

Open sharpchen opened this issue 10 months ago • 0 comments

Details

What editor are you seeing the problem in? (e.g. Atom, Visual Studio Code, etc.) vscode What version of the editor are you using? 1.88.1 What color theme are you using? darkplus

Repro

_ = (1, '2', "3") switch
{
    (var a, 'b', _) when a > 0 == true => 1,
    (object, _, string s) when s.Length > 2 == false => 2,
    var _ when false => 3,
    var _ when true => 4,
};

code

Please provide a code example and (optionally) a screenshot demonstrating the problem.

sharpchen avatar Apr 13 '24 19:04 sharpchen