Skip to content

Conversation

@thekid
Copy link
Member

@thekid thekid commented Aug 29, 2019

This pull request adds support for nullable types to is() and makes is consistent with cast().

is('?int', null) // true
is('?int', 1)    // true

Previously, using nullable type notation would result in lang.IllegalArgumentException (Not a wildcard type: ?int), so this is considered a bugfix.

@thekid thekid added this to the 10.0.0 milestone Aug 29, 2019
@thekid thekid merged commit d486294 into xp-framework:master Aug 29, 2019
@thekid thekid deleted the feature/is-nullable branch August 29, 2019 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant