mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-14 04:39:43 +08:00
11 lines
346 B
TypeScript
11 lines
346 B
TypeScript
import { base, bump, counter, Tally } from "./util.ts";
|
|
console.log("main start", base, counter);
|
|
bump();
|
|
bump();
|
|
// live binding: the importer sees the exporter's mutations
|
|
console.log("after bumps", counter);
|
|
const t = new Tally("t");
|
|
console.log(t.add(base), t.add(counter));
|
|
const alias = bump;
|
|
console.log(alias(), counter, alias === bump);
|