Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Comments

fix: throw an error if non-optional method is called on an optional type#2770

Merged
anton-trunov merged 7 commits intomainfrom
pmakhnev/check-optionals
Apr 14, 2025
Merged

fix: throw an error if non-optional method is called on an optional type#2770
anton-trunov merged 7 commits intomainfrom
pmakhnev/check-optionals

Conversation

@i582
Copy link
Contributor

@i582 i582 commented Apr 14, 2025

Issue

Closes #2766.

Checklist

  • I have updated CHANGELOG.md
  • I have added tests to demonstrate the contribution is correctly implemented: this usually includes both positive and negative tests, showing the happy path(s) and featuring intentionally broken cases

@i582 i582 requested a review from a team as a code owner April 14, 2025 09:51
@i582 i582 added this to the v1.6.6 milestone Apr 14, 2025
Copy link
Member

@novusnota novusnota left a comment

Choose a reason for hiding this comment

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

simplified the error message

anton-trunov
anton-trunov previously approved these changes Apr 14, 2025
novusnota
novusnota previously approved these changes Apr 14, 2025
@i582 i582 dismissed stale reviews from novusnota and anton-trunov via 9d7ca9a April 14, 2025 10:25
@anton-trunov anton-trunov merged commit 0169ef4 into main Apr 14, 2025
25 checks passed
@anton-trunov anton-trunov deleted the pmakhnev/check-optionals branch April 14, 2025 10:47
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.

Forbid calling an extension function for type T on an expression with type T?

3 participants