mirror of
https://github.com/denoland/deno.git
synced 2024-11-23 15:16:54 -05:00
57e95032c8
Fixes #6686
32 lines
398 B
TypeScript
32 lines
398 B
TypeScript
import { a as defaultA, O } from "./subdir/m.ts";
|
|
export { O } from "./subdir/m.ts";
|
|
|
|
interface AOptions {
|
|
a?(): void;
|
|
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();
|