TypeScript/tests/cases/compiler/assignToPrototype1.ts

6 lines
110 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
declare class Point {
add(dx: number, dy: number): void;
}
Point.prototype.add = function(dx, dy) {
};