Skip to content

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

@mrgleba

Description

@mrgleba

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions