oxc-project / oxc

âš“ A collection of JavaScript tools written in Rust.

Home Page:https://oxc.rs

Repository from Github https://github.comoxc-project/oxcRepository from Github https://github.comoxc-project/oxc

semantic: function declaration of type `TSDeclareFunction` doesn't have a symbol_id

kermanx opened this issue · comments

Playground

declare let a;  // Has symbol

declare function f(): any // No Symbol

declare function g(): any {} // No Symbol

function h(): any // No Symbol

Not sure if this is intentional 🥹

My expectation:

declare function f(): any // Has Symbol

declare function g(): any {} // Has Symbol

function h(): any // Has Symbol

function overloaded(): undefined // No Symbol
function overloaded(a: number): number // No Symbol
function overloaded(a?: number): number | undefined {} // Has Symbol

Closing as a duplicate of #7278