Skip to content

Incorrect reference resolve in function parameter's type #3799

@mysteryven

Description

@mysteryven
import * as foo from 'foo';

function bar(foo: foo) {}

We treat function parameter foo's type refers to itself.

CleanShot 2024-06-21 at 10 00 04@2x

CleanShot 2024-06-21 at 10 03 02@2x

  1. our playground
  2. typescript playground

Metadata

Metadata

Assignees

Labels

C-bugCategory - Bug

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions