Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Fix flow errors #735

Merged
merged 1 commit into from
Sep 27, 2017
Merged

Fix flow errors #735

merged 1 commit into from
Sep 27, 2017

Conversation

nicolo-ribaudo
Copy link
Member

Q A
Bug fix? no
Breaking change? no
New feature? no
Deprecations? no
Spec compliancy? no
Tests added/pass? no
Fixed tickets
License MIT

This pr is a big hack, since I force flow to coerce variables from supertypes to subtypes (which isn't actually possible).
The main problem is that the Babylon architecture doesn't play well with flow type refinements (e.g. this.isClassMethod() means that the current node is a class method, but Flow can't know it), but I couldn't find an elegant way to solve it.

@hzoo hzoo merged commit 664ff37 into babel:master Sep 27, 2017
@nicolo-ribaudo nicolo-ribaudo deleted the flow-errors branch September 27, 2017 19:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants