summaryrefslogtreecommitdiff
path: root/cli/tests/bundle/file_tests-fixture11.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/bundle/file_tests-fixture11.ts')
-rw-r--r--cli/tests/bundle/file_tests-fixture11.ts32
1 files changed, 32 insertions, 0 deletions
diff --git a/cli/tests/bundle/file_tests-fixture11.ts b/cli/tests/bundle/file_tests-fixture11.ts
new file mode 100644
index 000000000..d3f60d367
--- /dev/null
+++ b/cli/tests/bundle/file_tests-fixture11.ts
@@ -0,0 +1,32 @@
+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();