Skip to content

Conversation

@RblSb
Copy link
Member

@RblSb RblSb commented Dec 14, 2025

Found bug that {?a:Int} still can be passed to {a:Int} var.

Also added better errors usage, so instead of

Cannot unify { ?a : Null<Int> } with haxeLanguageServer.documents.OnTextDocumentChangeListener2

There's now:

Null safety: error: Null<Int> should be Int
have: { a: Null<Int> }
want: { a: Int }

Closes #7855
Closes #12454

@RblSb RblSb marked this pull request as draft December 18, 2025 12:25
@RblSb RblSb marked this pull request as ready for review December 19, 2025 19:37
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.

[null safety] False positive when passing {a:Int} to {} [nullsafety] null safety doesn't use the new have/want error reporting

2 participants