Inconsistent behavior of mappedBy with respect to [] operator #8063
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
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)
The text was updated successfully, but these errors were encountered: