Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go to definition: not working with type-only imports #36004

Closed
ajafff opened this issue Jan 4, 2020 · 1 comment · Fixed by #36092
Closed

Go to definition: not working with type-only imports #36004

ajafff opened this issue Jan 4, 2020 · 1 comment · Fixed by #36092
Assignees
Labels
Bug A bug in TypeScript Fix Available A PR has been opened for this issue

Comments

@ajafff
Copy link
Contributor

ajafff commented Jan 4, 2020

TypeScript Version: 3.8.0-dev.20200104

Search Terms:

Code

// @filename: a.ts
export class C {}

// @filename: b.ts
import type { C } from "./a";

export function f(p: C/*1*/) {}

Expected behavior:

Go to definition at /*1*/ works.

Actual behavior:

Go to definition only works if I use a regular import.

Related Issues: Introduced by @andrewbranch in #35200

@andrewbranch andrewbranch self-assigned this Jan 6, 2020
@andrewbranch
Copy link
Member

A test already exists for this 🤔

@andrewbranch andrewbranch added the Bug A bug in TypeScript label Jan 6, 2020
@andrewbranch andrewbranch added the Fix Available A PR has been opened for this issue label Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Fix Available A PR has been opened for this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants