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

[Textmate] Lambda with attribute

Open sharpchen opened this issue 1 year 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.85.1 What color theme are you using? Dark plus

Repro

var concat = ([DisallowNull] string a, [DisallowNull] string b) => a + b;
var inc = [return: NotNullIfNotNull(nameof(s))] (int? s) => s.HasValue ? s++ : null;
Func<string?, int?> parse = [ProvidesNullCheck] (s) => (s is not null) ? int.Parse(s) : null;

image

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

sharpchen avatar Dec 21 '23 08:12 sharpchen