2015-02-07 05:49:58 +01:00
|
|
|
//// [symbolDeclarationEmit11.ts]
|
|
|
|
class C {
|
|
|
|
static [Symbol.iterator] = 0;
|
|
|
|
static [Symbol.toPrimitive]() { }
|
|
|
|
static get [Symbol.isRegExp]() { return ""; }
|
|
|
|
static set [Symbol.isRegExp](x) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [symbolDeclarationEmit11.js]
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
2015-02-07 06:38:53 +01:00
|
|
|
C[Symbol.toPrimitive] = function () { };
|
2015-02-07 05:49:58 +01:00
|
|
|
Object.defineProperty(C, Symbol.isRegExp, {
|
2015-02-21 23:43:45 +01:00
|
|
|
get: function () { return ""; },
|
2015-02-07 06:38:53 +01:00
|
|
|
set: function (x) { },
|
2015-02-07 05:49:58 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
C[Symbol.iterator] = 0;
|
|
|
|
return C;
|
|
|
|
})();
|
|
|
|
|
|
|
|
|
|
|
|
//// [symbolDeclarationEmit11.d.ts]
|
|
|
|
declare class C {
|
|
|
|
static [Symbol.iterator]: number;
|
|
|
|
static [Symbol.toPrimitive](): void;
|
|
|
|
static [Symbol.isRegExp]: string;
|
|
|
|
}
|