Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend isinteger #93

Closed
jishnub opened this issue Dec 2, 2022 · 0 comments
Closed

Extend isinteger #93

jishnub opened this issue Dec 2, 2022 · 0 comments

Comments

@jishnub
Copy link
Contributor

jishnub commented Dec 2, 2022

The docstring for isinteger states

Test whether x is numerically equal to some integer.

so StaticInteger should satisfy isinteger(::StatcInteger) == true . Currently,

julia> isinteger(StaticInt(1))
ERROR: MethodError: no method matching isinteger(::StaticInt{1})

julia> StaticInt(1) == 1 # numerical equality holds
true
Tokazama added a commit that referenced this issue Dec 3, 2022
@Tokazama Tokazama closed this as completed Dec 3, 2022
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

No branches or pull requests

2 participants