Closed
Description
TypeScript Version: 2.3.3
Code
(copy-paste from the symbols documentation)
const getClassNameSymbol = Symbol();
class C {
[getClassNameSymbol](){
return "C";
}
}
let c = new C();
let className = c[getClassNameSymbol](); // Error TS7017
Expected behavior:
pass walidation
Actual behavior:
TS7017:Element implicitly has an 'any' type because type 'C' has no index signature.