Skip to content

Conversation

@RyanCavanaugh
Copy link
Member

If you have something like

// In global or local scope
interface Foo {
}

// User is editing here
class Bar extends Foo { }
//                ~~~
// Cannot extend interface, did you mean implements?

// In another file
export class Foo { }

This error is potentially fixable with an auto-import, so should appear in the list of errors that trigger autoimports

Checked locally
image

Fixes #59842

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Sep 4, 2024
@DanielRosenwasser
Copy link
Member

Seems right, can you just add a quick test case?

@typescript-bot typescript-bot added For Milestone Bug PRs that fix a bug with a specific milestone and removed For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Dec 4, 2024
@RyanCavanaugh RyanCavanaugh merged commit 4105134 into microsoft:main Dec 4, 2024
32 checks passed
@RyanCavanaugh RyanCavanaugh deleted the fix_59842 branch December 4, 2024 21:22
@sandersn sandersn removed this from PR Backlog Apr 22, 2025
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Milestone Bug PRs that fix a bug with a specific milestone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot import Disposable

4 participants