Skip to content

After v0.84 type-at-pos on flow-try doesn't work with object types #7939

@eilvelia

Description

@eilvelia

For example, with this code

declare function bar<T>(x: T, y: string | T): T;
const y = bar({ a: 1, b: 2 }, { c: 3 })

y.a

flow try

image

^ v0.83.0

image

^ v0.84.0

In the editor I see hints with any version, thus I think it is related to js-of-ocaml build.

I guess it is because re_string_match isn't implemented in JS and it fails on the property_key_quotes_needed function.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Websitebuggood first issueGood for newcomersregressionSeems to have worked before, but is broken now (issue has mention of last working version)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions