Skip to content

parser: remove the null-forgiving operator after DoesNotReturn calls - #70

Merged
rameel merged 1 commit into
mainfrom
parser/drop-null-forgiving-returns
Nov 23, 2026
Merged

rameel merged 1 commit into
mainfrom
parser/drop-null-forgiving-returns

Conversation

@rameel

@rameel rameel commented Nov 23, 2026

Copy link
Copy Markdown
Owner

The code after a [DoesNotReturn] call is unreachable for nullable analysis, so return null; needs no !, as in the other methods of ExpressionBuilder.

@rameel
rameel merged commit b99b5a4 into main Nov 23, 2026
1 check passed
@rameel
rameel deleted the parser/drop-null-forgiving-returns branch November 23, 2026 17:24
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.

1 participant