1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
=== tests/cases/compiler/protoAssignment.ts ===
interface Number extends Comparable<number> {
>Number : Symbol(Number, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(protoAssignment.ts, 0, 0))
compareTo(other: number);
>compareTo : Symbol(Number.compareTo, Decl(protoAssignment.ts, 0, 45))
>other : Symbol(other, Decl(protoAssignment.ts, 2, 14))
}
Number.prototype.compareTo = function (other: number) {
>Number.prototype.compareTo : Symbol(Number.compareTo, Decl(protoAssignment.ts, 0, 45))
>Number.prototype : Symbol(NumberConstructor.prototype, Decl(lib.es5.d.ts, --, --))
>Number : Symbol(Number, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(protoAssignment.ts, 0, 0))
>prototype : Symbol(NumberConstructor.prototype, Decl(lib.es5.d.ts, --, --))
>compareTo : Symbol(Number.compareTo, Decl(protoAssignment.ts, 0, 45))
>other : Symbol(other, Decl(protoAssignment.ts, 6, 39))
return this.valueOf() == other;
>other : Symbol(other, Decl(protoAssignment.ts, 6, 39))
}
|