Skip to content

Conversation

@JoeRobich
Copy link
Member

fixes #303

@JoeRobich JoeRobich force-pushed the dev/jorobich/lambda-attributes branch from 9950750 to e29d028 Compare December 29, 2023 23:18
const input = Input.InMethod(`
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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's have a test with an explicit return type too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Textmate] Lambda with attribute

3 participants