26 lines
379 B
Text
26 lines
379 B
Text
=== tests/cases/conformance/es6/Symbols/symbolProperty11.ts ===
|
|
class C { }
|
|
>C : C
|
|
|
|
interface I {
|
|
[Symbol.iterator]?: { x };
|
|
>[Symbol.iterator] : { x: any; }
|
|
>Symbol.iterator : symbol
|
|
>Symbol : SymbolConstructor
|
|
>iterator : symbol
|
|
>x : any
|
|
}
|
|
|
|
var i: I;
|
|
>i : I
|
|
|
|
i = new C;
|
|
>i = new C : C
|
|
>i : I
|
|
>new C : C
|
|
>C : typeof C
|
|
|
|
var c: C = i;
|
|
>c : C
|
|
>i : I
|
|
|