oxc/crates/oxc_semantic/tests
Dunqing 596aead0e9 fix(semantic): reset references flags when resolved (#7923)
For this case, we set `current_reference_flags` to `ReferenceFlags::Type` for `TSInterfaceHeritage`, but never unset it, which causes resolving `fowardRef` identifier reuse `current_reference_flags` of `TSInterfaceHeritage`.

```ts
import { forwardRef } from "react";
export interface MenuTriggerProps extends Object {}
export const MenuTrigger = forwardRef();
```

In this PR, reset the `current_reference_flags` when resolved, so that we don't need to reset it in individual visit functions. This is a reasonable change because the `current_reference_flags` only applies to the next encountered identifier.
2024-12-16 02:26:52 +00:00
..
conformance refactor(global): sort imports (#7883) 2024-12-14 15:07:21 +00:00
fixtures fix(semantic): reset references flags when resolved (#7923) 2024-12-16 02:26:52 +00:00
integration fix(cfg): include export default code in CFG instructions (#7862) 2024-12-14 12:09:28 +08:00
main.rs test(semantic): semantic checker store conformance pass/fail info in a separate file (#7235) 2024-11-11 08:13:13 +00:00