1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-20 14:24:48 -05:00
denoland-deno/tests/testdata/bundle/file_tests-fixture11.ts

33 lines
392 B
TypeScript
Raw Normal View History

import { a as defaultA, O } from "./subdir/m.ts";
export { O } from "./subdir/m.ts";
interface AOptions {
a?();
c?: O;
}
class A {
#a: () => void;
#c?: O;
constructor(o: AOptions = {}) {
const {
a = defaultA,
c,
} = o;
this.#a = a;
this.#c = c;
}
a() {
this.#a();
}
c() {
console.log(this.#c);
}
}
const a = new A();
a.a();
a.c();