2015-02-07 05:49:58 +01:00
|
|
|
//// [symbolDeclarationEmit4.ts]
|
|
|
|
class C {
|
|
|
|
get [Symbol.isRegExp]() { return ""; }
|
|
|
|
set [Symbol.isRegExp](x) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [symbolDeclarationEmit4.js]
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
|
|
|
Object.defineProperty(C.prototype, Symbol.isRegExp, {
|
2015-03-09 02:23:23 +01:00
|
|
|
get: function () {
|
|
|
|
return "";
|
|
|
|
},
|
|
|
|
set: function (x) {
|
|
|
|
},
|
2015-02-07 05:49:58 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
return C;
|
|
|
|
})();
|
|
|
|
|
|
|
|
|
|
|
|
//// [symbolDeclarationEmit4.d.ts]
|
|
|
|
declare class C {
|
|
|
|
[Symbol.isRegExp]: string;
|
|
|
|
}
|