2015-02-03 02:19:27 +01:00
|
|
|
=== tests/cases/conformance/es6/Symbols/symbolProperty21.ts ===
|
|
|
|
interface I<T, U> {
|
|
|
|
>I : I<T, U>
|
|
|
|
>T : T
|
|
|
|
>U : U
|
|
|
|
|
|
|
|
[Symbol.unscopables]: T;
|
2015-02-04 02:18:50 +01:00
|
|
|
>Symbol.unscopables : symbol
|
2015-02-03 02:19:27 +01:00
|
|
|
>Symbol : SymbolConstructor
|
2015-02-04 02:18:50 +01:00
|
|
|
>unscopables : symbol
|
2015-02-03 02:19:27 +01:00
|
|
|
>T : T
|
|
|
|
|
|
|
|
[Symbol.isConcatSpreadable]: U;
|
2015-02-04 02:18:50 +01:00
|
|
|
>Symbol.isConcatSpreadable : symbol
|
2015-02-03 02:19:27 +01:00
|
|
|
>Symbol : SymbolConstructor
|
2015-02-04 02:18:50 +01:00
|
|
|
>isConcatSpreadable : symbol
|
2015-02-03 02:19:27 +01:00
|
|
|
>U : U
|
|
|
|
}
|
|
|
|
|
|
|
|
declare function foo<T, U>(p: I<T, U>): { t: T; u: U };
|
|
|
|
>foo : <T, U>(p: I<T, U>) => { t: T; u: U; }
|
|
|
|
>T : T
|
|
|
|
>U : U
|
|
|
|
>p : I<T, U>
|
|
|
|
>I : I<T, U>
|
|
|
|
>T : T
|
|
|
|
>U : U
|
|
|
|
>t : T
|
|
|
|
>T : T
|
|
|
|
>u : U
|
|
|
|
>U : U
|
|
|
|
|
|
|
|
foo({
|
|
|
|
>foo({ [Symbol.isConcatSpreadable]: "", [Symbol.isRegExp]: 0, [Symbol.unscopables]: true}) : { t: boolean; u: string; }
|
|
|
|
>foo : <T, U>(p: I<T, U>) => { t: T; u: U; }
|
|
|
|
>{ [Symbol.isConcatSpreadable]: "", [Symbol.isRegExp]: 0, [Symbol.unscopables]: true} : { [Symbol.isConcatSpreadable]: string; [Symbol.isRegExp]: number; [Symbol.unscopables]: boolean; }
|
|
|
|
|
|
|
|
[Symbol.isConcatSpreadable]: "",
|
2015-02-04 02:18:50 +01:00
|
|
|
>Symbol.isConcatSpreadable : symbol
|
2015-02-03 02:19:27 +01:00
|
|
|
>Symbol : SymbolConstructor
|
2015-02-04 02:18:50 +01:00
|
|
|
>isConcatSpreadable : symbol
|
2015-02-03 02:19:27 +01:00
|
|
|
|
|
|
|
[Symbol.isRegExp]: 0,
|
2015-02-04 02:18:50 +01:00
|
|
|
>Symbol.isRegExp : symbol
|
2015-02-03 02:19:27 +01:00
|
|
|
>Symbol : SymbolConstructor
|
2015-02-04 02:18:50 +01:00
|
|
|
>isRegExp : symbol
|
2015-02-03 02:19:27 +01:00
|
|
|
|
|
|
|
[Symbol.unscopables]: true
|
2015-02-04 02:18:50 +01:00
|
|
|
>Symbol.unscopables : symbol
|
2015-02-03 02:19:27 +01:00
|
|
|
>Symbol : SymbolConstructor
|
2015-02-04 02:18:50 +01:00
|
|
|
>unscopables : symbol
|
2015-02-03 02:19:27 +01:00
|
|
|
|
|
|
|
});
|