16 lines
587 B
Text
16 lines
587 B
Text
=== tests/cases/conformance/es6/Symbols/symbolProperty57.ts ===
|
|
var obj = {
|
|
>obj : Symbol(obj, Decl(symbolProperty57.ts, 0, 3))
|
|
|
|
[Symbol.iterator]: 0
|
|
>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31))
|
|
>Symbol : Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1292, 11))
|
|
>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31))
|
|
|
|
};
|
|
|
|
// Should give type 'any'.
|
|
obj[Symbol["nonsense"]];
|
|
>obj : Symbol(obj, Decl(symbolProperty57.ts, 0, 3))
|
|
>Symbol : Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1292, 11))
|
|
|