27 lines
904 B
Text
27 lines
904 B
Text
=== tests/cases/conformance/es6/Symbols/symbolProperty11.ts ===
|
|
class C { }
|
|
>C : Symbol(C, Decl(symbolProperty11.ts, 0, 0))
|
|
|
|
interface I {
|
|
>I : Symbol(I, Decl(symbolProperty11.ts, 0, 11))
|
|
|
|
[Symbol.iterator]?: { x };
|
|
>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))
|
|
>x : Symbol(x, Decl(symbolProperty11.ts, 2, 25))
|
|
}
|
|
|
|
var i: I;
|
|
>i : Symbol(i, Decl(symbolProperty11.ts, 5, 3))
|
|
>I : Symbol(I, Decl(symbolProperty11.ts, 0, 11))
|
|
|
|
i = new C;
|
|
>i : Symbol(i, Decl(symbolProperty11.ts, 5, 3))
|
|
>C : Symbol(C, Decl(symbolProperty11.ts, 0, 0))
|
|
|
|
var c: C = i;
|
|
>c : Symbol(c, Decl(symbolProperty11.ts, 7, 3))
|
|
>C : Symbol(C, Decl(symbolProperty11.ts, 0, 0))
|
|
>i : Symbol(i, Decl(symbolProperty11.ts, 5, 3))
|
|
|