Skip to content

Conversation

@JakeWharton
Copy link
Contributor

@JakeWharton JakeWharton commented Oct 28, 2024

This behavior brings it more line with how 'is' behaves in the language.

Refs #393. Refs #550.

Copy link
Collaborator

@evant evant left a comment

Choose a reason for hiding this comment

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

Do we also want isNotInstanceOf to take null for the same reason?

@JakeWharton JakeWharton force-pushed the jw.isInstanceOf-on-null.2024-10-28 branch from db3c671 to 9cef28d Compare October 29, 2024 14:53
@JakeWharton
Copy link
Contributor Author

Do we also want isNotInstanceOf to take null for the same reason?

Done! I'm not sure how useful this is in practice, but consistency with the positive assertion and the language makes sense.

@evant evant merged commit 161b334 into assertk-org:main Oct 29, 2024
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