Property not found on intersection type
Open
- Dominant language
- Rust
- Stars
- 22.3k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
It is not possible to access certain properties on intersection types if you define a list of keys you want to access.
It works if you add the `string[]` type to the properties list.
Here is an example:
https://flow.org/try/#0PTAEAEDMBsHsHcBQiAmBTAxtAhgJzaAC4CeADgQELYDOaA8gEYBWmhoAvKAN6KiiSxYALlDVCuAJYA7AOYBuRAF8F6LHgIlyoALLFGLDG048+DPCLGTZCxaABkoKrX2sFiAG55QAWz3MRui6GHNy8-IIiAEQCsJEANGFmuFFJoACMkUpuIKAAYgCCAJIAMgDKiBiwUmKgpLiwpNQAqlKaaCghANrRgvGgkUmRALqIdQ3NrWTtAHTUsN5oABSLpACUHAB8Pn5MnaRDq9lgAOp0AEoA0uWV1WxjjQAqUygW4tIynUNdPbFx-YMje7UJ7kFCzeZLFbrdhbXz6PYHBRAA
Contributor guide
Assessment
This issue has not been assessed yet.