Skip to content

Fix nullability error in CI build#296

Open
farlee2121 wants to merge 4 commits into
YoloDev:mainfrom
farlee2121:main
Open

Fix nullability error in CI build#296
farlee2121 wants to merge 4 commits into
YoloDev:mainfrom
farlee2121:main

Conversation

@farlee2121

Copy link
Copy Markdown
Contributor

Responding to #291 (comment)

I recreated the update to expecto 11, and it passes with these changes.

It appears the issue was argNotNull was returning the original value instead of the pattern matched value, which confused the compiler into thinking the value might still be null

…ead of a positional argument.

Seems to be an Microsoft.Testing.Platform thing
Guard.argNotNull was returning the original value, so the compiler thought the return value could still be null. Now the compiler recognizes that the return value cannot be null
@Alxandr

Alxandr commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Thanks. I'll try to re-create the error from earlier and double check if this fixes it :). Or if I'm able to set up a test-matrix with different expecto versions that would be even better. Hopefully I'll get to this weekend.

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.

2 participants