Two different `typeof x` are treated as the same (where `x` is a different variable in each)
RebeccaStevens opened this issue · comments
Rebecca Stevens commented
- Version: 3.4.5
- Rollup Version: 4.18.0
- Does it work with
tsc
(if applicable): Yes
Reproduction
https://github.com/RebeccaStevens/rollup-plugin-ts-issue-226
Expected Behavior
type Foo = {
bar: typeof bar;
};
declare function bar(baz: string): string;
type Foo$0 = {
bar: typeof bar$0;
};
declare function bar$0(baz: string, qux: string): string;
export { Foo as AFoo, Foo$0 as BFoo };
Actual Behavior
type Foo = {
bar: typeof bar;
};
declare function bar(baz: string): string;
type Foo$0 = {
bar: typeof bar;
};
export { Foo as AFoo, Foo$0 as BFoo };