-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
compile error on typescript@next #800
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
Comments
sandersn
added a commit
to sandersn/vue-next
that referenced
this issue
Mar 5, 2020
The next version of Typescript disallows 'this' parameter annotations on accessors, which causes vue-next to fail to compile. This PR removes the annotation and adds a cast instead. Fixes vuejs#800
yyx990803
added a commit
that referenced
this issue
Mar 5, 2020
The next version of Typescript disallows 'this' parameter annotations on accessors, which causes vue-next to fail to compile. This PR removes the annotation and adds a cast instead. Fixes #800
jiangying000
added a commit
to jiangying000/vue-next
that referenced
this issue
Mar 7, 2020
yyx990803
pushed a commit
that referenced
this issue
Mar 9, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
3.0.0-alpha.7
Reproduction link
microsoft/TypeScript#37225 (comment)
Steps to reproduce
Upgrade to typescript@next, then run build or open packages/reactivity/src/collectionHandlers.ts:179 with your editor set to use the local version of typescript.
What is expected?
No compile error
What is actually happening?
Compile error: semantic error TS2784: 'get' and 'set' accessors cannot declare 'this' parameters.
Typescript did not intend to allow 'this' parameters for accessors and wasn't checking them, but incorrectly allowed them until microsoft/TypeScript#36889. Discovered by Typescript's user test run: microsoft/TypeScript#37225 (comment)
The text was updated successfully, but these errors were encountered: