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

BoundsError on type-unstable map #106

Open
yha opened this issue Mar 23, 2020 · 1 comment
Open

BoundsError on type-unstable map #106

yha opened this issue Mar 23, 2020 · 1 comment

Comments

@yha
Copy link
Contributor

yha commented Mar 23, 2020

Each of these lines

map(!, OffsetArray([true,missing],2))
map(x -> x>1 ? 1 : nothing, OffsetArray(1:2,2))

errors with

BoundsError: attempt to access 2-element OffsetArray(::Array{Union{Missing, Bool},1}, 3:4) with eltype Union{Missing, Bool} with indices 3:4 at index [3:5]
@timholy
Copy link
Member

timholy commented Mar 29, 2020

Fixed by JuliaLang/julia#35298. We'll need a workaround here for older Julia versions.

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