Skip to content

(dup #44281) false positive ts2310: Type '' recursively references itself as a base type. (regression 4.2.4 -> 4.3.2) #44359

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

Closed
mrgleba opened this issue Jun 1, 2021 · 2 comments

Comments

@mrgleba
Copy link

mrgleba commented Jun 1, 2021

Bug Report

πŸ”Ž Search Terms

ts2310

πŸ•— Version & Regression Information

  • This changed between versions 4.2.4 and 4.3.2

⏯ Playground Link

Playground link

πŸ’» Code

abstract class Base {
    abstract root() : Derived
}

class Derived extends class extends Base {
    root() {
        return undefined as any
    }
}
{
    
}

πŸ™ Actual behavior

Compiler shows ts2310 error

πŸ™‚ Expected behavior

Clean compile

@canonic-epicure
Copy link

Perhaps same as #44281 ?

@mrgleba
Copy link
Author

mrgleba commented Jun 1, 2021

Thanks for pointing that out.
I'm closing the issue as a duplicate.

@mrgleba mrgleba closed this as completed Jun 1, 2021
@mrgleba mrgleba changed the title false positive ts2310: Type '' recursively references itself as a base type. (regression 4.2.4 -> 4.3.2) (dup #44281 ) false positive ts2310: Type '' recursively references itself as a base type. (regression 4.2.4 -> 4.3.2) Jun 1, 2021
@mrgleba mrgleba changed the title (dup #44281 ) false positive ts2310: Type '' recursively references itself as a base type. (regression 4.2.4 -> 4.3.2) (dup #44281) false positive ts2310: Type '' recursively references itself as a base type. (regression 4.2.4 -> 4.3.2) Jun 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants