newtests/lsp/documentHighlight/__fixtures__/idx.js (9 lines of code) (raw):

// @flow declare var idx: $Facebookism$Idx; type Foo = { foo: ?{ bar: string, } }; function foo(x: ?Foo): ?string { return idx(x, _ => _.foo.bar); }