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

Issue when resolving array elements as the last element of the expression #88

Closed
Echolz opened this issue Mar 21, 2019 · 0 comments · Fixed by #95
Closed

Issue when resolving array elements as the last element of the expression #88

Echolz opened this issue Mar 21, 2019 · 0 comments · Fixed by #95
Assignees
Milestone

Comments

@Echolz
Copy link

Echolz commented Mar 21, 2019

When I try to resolve, where the accessing of the element is the last operation of the expression I get the array of friends and not the element in the array of friends which is on the 0-th index.

result := m.Get("inviter.Friends[0]")

reflect.Typeof(result) //[]people.Friend (array of Friend and not a single friend)
geseq added a commit to geseq/objx that referenced this issue Apr 15, 2019
@geseq geseq mentioned this issue Apr 15, 2019
2 tasks
@hanzei hanzei added this to the v1.0 milestone Apr 15, 2019
hanzei pushed a commit that referenced this issue Apr 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants