This code does not compile:
It gives the error “Type of expression is ambiguous without more context.” Adding an explicit type to the left of the dot fixes it:
However, with a trivial wrapping of the `[keyPath: …]` access in a func, the implicit type works:
Is this a bug?
May be related to
SR-6740, but seems distinct.