Skip to content

undefined[] converted to any[] in JS #43030

Closed
@DanielRosenwasser

Description

@DanielRosenwasser

I found related broken example.

Version 4.3.0-dev.20210228

/** @type {() => undefined} */
function a () { return undefined }

// Actually: any
// Expected: undefined
const b = a()

Originally posted by @awerlogus in #42133 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: JavaScriptThe issue relates to JavaScript specificallycheckJsRelates to checking JavaScript using TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions