Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Parsing error when declaring a class that extends a property of another class (flow) #368

Closed
rsolomon opened this issue Aug 8, 2016 · 3 comments

Comments

@rsolomon
Copy link

rsolomon commented Aug 8, 2016

Declaring a class that extends another class seems to work fine:

declare class A extends B { }

However, declaring that same class as a subclass of B, a property of C, results in an eslint error:

declare class A extends C.B { }

Flow finds no fault in the above code, and it executes fine, so I believe it should be recognized as valid syntax.

@danez
Copy link
Member

danez commented Aug 9, 2016

thanks, I forward this to babel/babylon.

@danharper
Copy link
Member

This was fixed in Babylon v6.9.1 babel/babylon#97

@danez
Copy link
Member

danez commented Sep 11, 2016

True thanks for mentioning.

@danez danez closed this as completed Sep 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants