Skip to content

Add constraint inference#197

Draft
kaleidawave wants to merge 1 commit intomainfrom
constraint-inference
Draft

Add constraint inference#197
kaleidawave wants to merge 1 commit intomainfrom
constraint-inference

Conversation

@kaleidawave
Copy link
Owner

@kaleidawave kaleidawave commented Aug 26, 2024

Add parameter inference for passing as argument, getting a property from and calling

TODO more cases

  • Operator inference
  • Nested inference
  • Free variable thing
  • this inference
  • Test narrowing
  • Combing requests

Also not sure what to do here

function x(a, prop) {
    return a[prop]
}

x({ a: 1 }, "b")

@kaleidawave kaleidawave linked an issue Aug 26, 2024 that may be closed by this pull request
@kaleidawave kaleidawave added enhancement New feature or request inference Related to inferring the restriction of poly types labels Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request inference Related to inferring the restriction of poly types

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inferred generic (poly type) constraints

1 participant