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

Inconsistent behavior of mappedBy with respect to [] operator #8063

Closed
mraleph opened this issue Jan 23, 2013 · 2 comments
Closed

Inconsistent behavior of mappedBy with respect to [] operator #8063

mraleph opened this issue Jan 23, 2013 · 2 comments
Assignees
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.

Comments

@mraleph
Copy link
Member

mraleph commented Jan 23, 2013

This one passes:

Expect.equals(0, [0].mappedBy((x) => x)[0]);

This one throws:

Expect.equals(0, [0].mappedBy((x) => x).mappedBy((x) => x)[0]);

Unhandled exception:
NoSuchMethodError : method not found: '[]'
Receiver: Instance of 'MappedIterable'
Arguments: [1]

­0 Object._noSuchMethod (dart:core-patch:1729:3)

­1 Object.noSuchMethod (dart:core-patch:1730:25)

­2 main (file:///usr/local/google/home/vegorov/src/dart/dart/test.dart:4:61)

@floitschG
Copy link
Contributor

Added Started label.

@floitschG
Copy link
Contributor

Added Fixed label.

@mraleph mraleph added Type-Defect area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. labels Jan 31, 2013
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
Projects
None yet
Development

No branches or pull requests

2 participants