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
"name" property on a function has a special meaning in JavaScript
(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name)
If you do
class MyC { static name = "foo"; foo() { console.log(MyC.name); } } f = new MyC(); f.foo();
You get code that behaves unxpectedly (prints "MyC" instead of "foo". With minifaction, it will print a minified function name (e.g. "i").
Desired behavior: TypeScript should raise error or warning when you try to create static attribute called "name".
The text was updated successfully, but these errors were encountered:
looks like a dupe of #442
Sorry, something went wrong.
No branches or pull requests
"name" property on a function has a special meaning in JavaScript
(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name)
If you do
You get code that behaves unxpectedly (prints "MyC" instead of "foo". With minifaction, it will print a minified function name (e.g. "i").
Desired behavior: TypeScript should raise error or warning when you try to create static attribute called "name".
The text was updated successfully, but these errors were encountered: