-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
this any typed in some JS object literals #22058
Labels
Bug
A bug in TypeScript
Domain: JavaScript
The issue relates to JavaScript specifically
Has Repro
This issue has compiler-backed repros: https://aka.ms/ts-repros
VS Code Tracked
There is a VS Code equivalent to this issue
Milestone
Comments
This is still an issue. Repro console.log({
a: 1,
b() {
this
// ^?
}
}); |
👋 Hi, I'm the Repro bot. I can help narrow down and track compiler bugs across releases! This comment reflects the current state of this repro running against the nightly TypeScript.
Historical Information
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug
A bug in TypeScript
Domain: JavaScript
The issue relates to JavaScript specifically
Has Repro
This issue has compiler-backed repros: https://aka.ms/ts-repros
VS Code Tracked
There is a VS Code equivalent to this issue
From microsoft/vscode#43930
TypeScript Version: 2.8.0.insiders-20180211
Search Terms:
Code
For the js:
Hover over
this
inb
Bug
this
hasany
typethis
is properly typed in cases like:Playground Link:
Related Issues:
this
in object literals is untyped #11072The text was updated successfully, but these errors were encountered: