Files
scriptc/tests/corpus/952-modules-cross/ops.ts
2026-07-22 18:08:04 -05:00

14 lines
449 B
TypeScript

import { makePoint, made, noteMade } from "./shapes.ts";
import type { Point } from "./shapes.ts";
let history: string = "";
export function shift(p: Point, by: number): Point {
noteMade();
history += `(${p.x}+${by})`;
return makePoint(p.x + by, p.y + by);
}
export function madeCount(): number {
return made;
}
const stashedPoint = makePoint(100, 200);
export const stashed = (): string => `${stashedPoint.x},${stashedPoint.y}:${history}`;