2015-02-03 02:19:27 +01:00
|
|
|
//// [symbolProperty20.ts]
|
|
|
|
interface I {
|
|
|
|
[Symbol.iterator]: (s: string) => string;
|
|
|
|
[Symbol.toStringTag](s: number): number;
|
|
|
|
}
|
|
|
|
|
|
|
|
var i: I = {
|
|
|
|
[Symbol.iterator]: s => s,
|
|
|
|
[Symbol.toStringTag](n) { return n; }
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [symbolProperty20.js]
|
|
|
|
var i = {
|
2015-02-22 02:16:04 +01:00
|
|
|
[Symbol.iterator]: s => s,
|
2015-02-21 23:43:45 +01:00
|
|
|
[Symbol.toStringTag](n) { return n; }
|
2015-02-03 02:19:27 +01:00
|
|
|
};
|