The following code doesn't compile. ``` ts const getClassNameSymbol = Symbol(); class C { [getClassNameSymbol](){ return "C"; } } let c = new C(); let className = c[getClassNameSymbol](); // "C" ``` It's the last line that creates an error. From what I can understand it is explained in issue [#1863](https://github.com/Microsoft/TypeScript/issues/1863) of the TypeScript repo. Based on @danquirk's and **JsonFreeman**'s answers to **wereHamster** this feature is not yet supported.
The following code doesn't compile.
It's the last line that creates an error.
From what I can understand it is explained in issue #1863 of the TypeScript repo.
Based on @danquirk's and JsonFreeman's answers to wereHamster this feature is not yet supported.