diff --git a/crates/swc_ecma_transforms_compat/tests/classes/issue-7561/input.js b/crates/swc_ecma_transforms_compat/tests/classes/issue-7561/input.js new file mode 100644 index 0000000000000..1bedd2a424100 --- /dev/null +++ b/crates/swc_ecma_transforms_compat/tests/classes/issue-7561/input.js @@ -0,0 +1,7 @@ +class Foo { + #x; + + test() { + this?.y.#x; + } +}