Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLJS-3373: Externs Inference issue with vars invoked from foreign libs #173

Merged
merged 1 commit into from May 5, 2022

Conversation

swannodette
Copy link
Member

Fix invoke inference to handle invokes on vars from foreign libs. If
we have a :js-var we cannot know whether it is a function or property.
Note this is different from the :js-fn-var case where a provided
extern did disambiguate.

In the case of :js-var we throw away the leading prefix since the
types simply cannot be known.

Add a test case based on the one provided by Timothy Pratley.

Fix invoke inference to handle invokes on vars from foreign libs. If
we have a :js-var we cannot know whether it is a function or property.
Note this is different from the `:js-fn-var` case where a provided
extern did disambiguate.

In the case of `:js-var` we throw away the leading prefix since the
types simply cannot be known.

Add a test case based on the one provided by Timothy Pratley.
@swannodette swannodette merged commit 9e9b6d9 into master May 5, 2022
@swannodette swannodette deleted the cljs-3373 branch May 11, 2022 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant