37 lines
1.8 KiB
Text
37 lines
1.8 KiB
Text
=== tests/cases/conformance/es6/Symbols/symbolProperty22.ts ===
|
|
interface I<T, U> {
|
|
>I : Symbol(I, Decl(symbolProperty22.ts, 0, 0))
|
|
>T : Symbol(T, Decl(symbolProperty22.ts, 0, 12))
|
|
>U : Symbol(U, Decl(symbolProperty22.ts, 0, 14))
|
|
|
|
[Symbol.unscopables](x: T): U;
|
|
>Symbol.unscopables : Symbol(SymbolConstructor.unscopables, Decl(lib.d.ts, 1284, 24))
|
|
>Symbol : Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1292, 11))
|
|
>unscopables : Symbol(SymbolConstructor.unscopables, Decl(lib.d.ts, 1284, 24))
|
|
>x : Symbol(x, Decl(symbolProperty22.ts, 1, 25))
|
|
>T : Symbol(T, Decl(symbolProperty22.ts, 0, 12))
|
|
>U : Symbol(U, Decl(symbolProperty22.ts, 0, 14))
|
|
}
|
|
|
|
declare function foo<T, U>(p1: T, p2: I<T, U>): U;
|
|
>foo : Symbol(foo, Decl(symbolProperty22.ts, 2, 1))
|
|
>T : Symbol(T, Decl(symbolProperty22.ts, 4, 21))
|
|
>U : Symbol(U, Decl(symbolProperty22.ts, 4, 23))
|
|
>p1 : Symbol(p1, Decl(symbolProperty22.ts, 4, 27))
|
|
>T : Symbol(T, Decl(symbolProperty22.ts, 4, 21))
|
|
>p2 : Symbol(p2, Decl(symbolProperty22.ts, 4, 33))
|
|
>I : Symbol(I, Decl(symbolProperty22.ts, 0, 0))
|
|
>T : Symbol(T, Decl(symbolProperty22.ts, 4, 21))
|
|
>U : Symbol(U, Decl(symbolProperty22.ts, 4, 23))
|
|
>U : Symbol(U, Decl(symbolProperty22.ts, 4, 23))
|
|
|
|
foo("", { [Symbol.unscopables]: s => s.length });
|
|
>foo : Symbol(foo, Decl(symbolProperty22.ts, 2, 1))
|
|
>Symbol.unscopables : Symbol(SymbolConstructor.unscopables, Decl(lib.d.ts, 1284, 24))
|
|
>Symbol : Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1292, 11))
|
|
>unscopables : Symbol(SymbolConstructor.unscopables, Decl(lib.d.ts, 1284, 24))
|
|
>s : Symbol(s, Decl(symbolProperty22.ts, 6, 31))
|
|
>s.length : Symbol(String.length, Decl(lib.d.ts, 414, 19))
|
|
>s : Symbol(s, Decl(symbolProperty22.ts, 6, 31))
|
|
>length : Symbol(String.length, Decl(lib.d.ts, 414, 19))
|
|
|