Skip to content
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

Uses of symbolName in diagnostics are ugly for dynamic names #21009

Closed
ghost opened this issue Jan 4, 2018 · 0 comments
Closed

Uses of symbolName in diagnostics are ugly for dynamic names #21009

ghost opened this issue Jan 4, 2018 · 0 comments
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@ghost
Copy link

ghost commented Jan 4, 2018

TypeScript Version: master

Code

const foo = Symbol.for("foo");
class C {
    private [foo]: number;
}

Expected behavior:

src/a.ts(3,13): error TS6133: '[foo]' is declared but its value is never read.

Actual behavior:

src/a.ts(3,13): error TS6133: '__@foo@19374' is declared but its value is never read.
@mhegazy mhegazy added the Bug A bug in TypeScript label Jan 4, 2018
@mhegazy mhegazy added this to the TypeScript 2.7 milestone Jan 4, 2018
@mhegazy mhegazy assigned ghost Jan 4, 2018
@mhegazy mhegazy modified the milestones: TypeScript 2.7, TypeScript 2.8 Jan 9, 2018
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Feb 12, 2018
@ghost ghost closed this as completed in #21883 Feb 12, 2018
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

1 participant