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

indexing a slice with an array causes an error inside ndslice #14

Closed
John-Colvin opened this issue Mar 3, 2016 · 1 comment
Closed

Comments

@John-Colvin
Copy link
Contributor

e.g. mySlice[[1,2,3]] gives

/Users/john/.dub/packages/mir-0.10.2/source/mir/ndslice/slice.d(1556): Error: no property 'i' for type 'int[]'
/Users/john/.dub/packages/mir-0.10.2/source/mir/ndslice/slice.d(1557): Error: no property 'j' for type 'int[]'
/Users/john/.dub/packages/mir-0.10.2/source/mir/ndslice/slice.d(1557): Error: no property 'i' for type 'int[]'
test.d(8): Error: template instance mir.ndslice.slice.Slice!(3LU, ulong*).Slice.opIndex!(int[]) error instantiating

it should either work or should error at the API level, not internally.

@John-Colvin John-Colvin added the bug label Mar 8, 2016
@9il 9il closed this as completed in 0097d05 Apr 5, 2016
9il added a commit that referenced this issue Apr 5, 2016
@9il
Copy link
Member

9il commented Apr 5, 2016

This code should compiles with v0.11.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants