mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 03:31:45 +03:00
22 lines
336 B
TypeScript
22 lines
336 B
TypeScript
// @target: es2015
|
|
// @filename: a.ts
|
|
export class Foo {
|
|
#x;
|
|
copy(other: import("./b").Foo) {
|
|
other.#x; // error
|
|
}
|
|
}
|
|
|
|
// @filename: b.ts
|
|
export class Foo {
|
|
#x;
|
|
}
|
|
|
|
// @filename: main.ts
|
|
import { Foo as A } from "./a";
|
|
import { Foo as B } from "./b";
|
|
|
|
const a = new A();
|
|
const b = new B();
|
|
a.copy(b); // error
|