2015-02-07 05:49:58 +01:00
|
|
|
//// [symbolDeclarationEmit3.ts]
|
|
|
|
class C {
|
|
|
|
[Symbol.isRegExp](x: number);
|
|
|
|
[Symbol.isRegExp](x: string);
|
|
|
|
[Symbol.isRegExp](x: any) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [symbolDeclarationEmit3.js]
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
2015-02-07 06:38:53 +01:00
|
|
|
C.prototype[Symbol.isRegExp] = function (x) { };
|
2015-02-07 05:49:58 +01:00
|
|
|
return C;
|
|
|
|
})();
|
|
|
|
|
|
|
|
|
|
|
|
//// [symbolDeclarationEmit3.d.ts]
|
|
|
|
declare class C {
|
|
|
|
[Symbol.isRegExp](x: number): any;
|
|
|
|
[Symbol.isRegExp](x: string): any;
|
|
|
|
}
|