Skip to content

Classes with generic mixins applied to base do not parse correctly #131

@bennypowers

Description

@bennypowers

consider

interface C {}
class B<T, U> {}

function F(s: any) { return class G<T, U> extends s {} }

export class A extends F(B)<D, E> implements C {}

export class _A extends B<D, E> implements C {}

Expected:

implements on line 6 parses as implements_clause

Actual:

implements on line 6 parses as part of a binary_expression in the extends_clause

Screen Shot 2021-02-09 at 15 17 36

See also atom/language-typescript#57

Metadata

Metadata

Assignees

Labels

bugpriority:mediummedium-priority task, typically with broad demand but not blocking

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions