We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TypeScript Version: master
Code
class C { constructor() { new D().p; // ok } public p = new D().p; // should also be ok } class D { public p = ''; }
Expected behavior:
ok
Actual behavior:
$ node built/local/tsc.js index.ts -t es6 index.ts(5,22): error TS2448: Block-scoped variable 'p' used before its declaration.
The text was updated successfully, but these errors were encountered:
Typescript 2.2.1, same Issue
Sorry, something went wrong.
@sandersn Could you fix this?
Fix is up at #14952
Thanks!
sandersn
No branches or pull requests
TypeScript Version: master
Code
Expected behavior:
ok
Actual behavior:
The text was updated successfully, but these errors were encountered: