52 lines
2.1 KiB
Text
52 lines
2.1 KiB
Text
=== tests/cases/conformance/es6/Symbols/symbolProperty16.ts ===
|
|
class C {
|
|
>C : Symbol(C, Decl(symbolProperty16.ts, 0, 0))
|
|
|
|
private [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(symbolProperty16.ts, 1, 32))
|
|
}
|
|
interface I {
|
|
>I : Symbol(I, Decl(symbolProperty16.ts, 2, 1))
|
|
|
|
[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(symbolProperty16.ts, 4, 24))
|
|
}
|
|
|
|
declare function foo(i: I): I;
|
|
>foo : Symbol(foo, Decl(symbolProperty16.ts, 5, 1), Decl(symbolProperty16.ts, 7, 30))
|
|
>i : Symbol(i, Decl(symbolProperty16.ts, 7, 21))
|
|
>I : Symbol(I, Decl(symbolProperty16.ts, 2, 1))
|
|
>I : Symbol(I, Decl(symbolProperty16.ts, 2, 1))
|
|
|
|
declare function foo(a: any): any;
|
|
>foo : Symbol(foo, Decl(symbolProperty16.ts, 5, 1), Decl(symbolProperty16.ts, 7, 30))
|
|
>a : Symbol(a, Decl(symbolProperty16.ts, 8, 21))
|
|
|
|
declare function bar(i: C): C;
|
|
>bar : Symbol(bar, Decl(symbolProperty16.ts, 8, 34), Decl(symbolProperty16.ts, 10, 30))
|
|
>i : Symbol(i, Decl(symbolProperty16.ts, 10, 21))
|
|
>C : Symbol(C, Decl(symbolProperty16.ts, 0, 0))
|
|
>C : Symbol(C, Decl(symbolProperty16.ts, 0, 0))
|
|
|
|
declare function bar(a: any): any;
|
|
>bar : Symbol(bar, Decl(symbolProperty16.ts, 8, 34), Decl(symbolProperty16.ts, 10, 30))
|
|
>a : Symbol(a, Decl(symbolProperty16.ts, 11, 21))
|
|
|
|
foo(new C);
|
|
>foo : Symbol(foo, Decl(symbolProperty16.ts, 5, 1), Decl(symbolProperty16.ts, 7, 30))
|
|
>C : Symbol(C, Decl(symbolProperty16.ts, 0, 0))
|
|
|
|
var i: I;
|
|
>i : Symbol(i, Decl(symbolProperty16.ts, 14, 3))
|
|
>I : Symbol(I, Decl(symbolProperty16.ts, 2, 1))
|
|
|
|
bar(i);
|
|
>bar : Symbol(bar, Decl(symbolProperty16.ts, 8, 34), Decl(symbolProperty16.ts, 10, 30))
|
|
>i : Symbol(i, Decl(symbolProperty16.ts, 14, 3))
|
|
|