summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/bundle/file_tests-fixture11.ts
blob: 1c361438f39c6821538d48329b129ad655c29cb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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();