Skip to content

Regression: Incorrect parse error when decorated class member follows non-semicolon-terminated property declaration #45155

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

Closed
typescript-bot opened this issue Jul 22, 2021 · 3 comments
Assignees
Labels
Bug A bug in TypeScript

Comments

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jul 22, 2021

The following errors were reported by 4.4.0-dev.20210722, but not by 4.3.5

ant-design/ant-design

tsconfig.json

vercel/hyper

2 of 3 projects failed to build with the old tsc

tsconfig.json

styled-components/styled-components

packages/styled-components/tsconfig.json

typeorm/typeorm

tsconfig.json

balena-io/etcher

1 of 2 projects failed to build with the old tsc

tsconfig.webpack.json

homebridge/homebridge

tsconfig.json

rome/tools

tsconfig.json

GeekyAnts/NativeBase

2 of 3 projects failed to build with the old tsc

tsconfig.json

sindresorhus/refined-github

tsconfig.json

Redocly/redoc

tsconfig.json

  • error TS2801: This condition will always return true since this 'Promise<any>' is always defined.
  • error TS2807: This syntax requires an imported helper named '__spreadArray' with 3 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'.

tsconfig.lib.json

  • error TS2801: This condition will always return true since this 'Promise<any>' is always defined.
  • error TS2807: This syntax requires an imported helper named '__spreadArray' with 3 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'.

flatpickr/flatpickr

src/tsconfig.json

  • error TS2571: Object is of type 'unknown'.
  • error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'Error'.
  • error TS2551: Property 'msMaxTouchPoints' does not exist on type 'Navigator'. Did you mean 'maxTouchPoints'?

tsconfig.esm.json

  • error TS2571: Object is of type 'unknown'.
  • error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'Error'.
  • error TS2551: Property 'msMaxTouchPoints' does not exist on type 'Navigator'. Did you mean 'maxTouchPoints'?

tsconfig.json

@RyanCavanaugh RyanCavanaugh added the Bug A bug in TypeScript label Jul 26, 2021
@RyanCavanaugh RyanCavanaugh added this to the TypeScript 4.4.1 (RC) milestone Jul 26, 2021
@RyanCavanaugh
Copy link
Member

@rbuckton specifically the issuance of error TS1436: Decorators must precede the name and all keywords of property declarations when a decorated member follows a non-semicolon-terminated property declaration

class C {
  foo

  @bar()
  baz;
}

@RyanCavanaugh RyanCavanaugh changed the title [NewErrors] 4.4.0-dev.20210722 vs 4.3.5 Regression: Incorrect parse error when decorated class member follows non-semicolon-terminated property declaration Jul 26, 2021
@a-tarasyuk
Copy link
Contributor

@RyanCavanaugh It seems duplicate of #45157 (#45165)

@RyanCavanaugh
Copy link
Member

@a-tarasyuk lovely, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript
Projects
None yet
Development

No branches or pull requests

4 participants