Skip to content

No "'super' can only be referenced in a derived class." error when "interface ClassWithNoParent extends SomeInterface {}" #19068

@NaridaL

Description

@NaridaL

TypeScript Version: 2.5.3 / nightly (2.6.0-dev.20171010)

Code

interface Foo extends Array<number> {}
class Foo {
    constructor() {
        super()
    }
}

Expected behavior:
'super' can only be referenced in a derived class.

Actual behavior:
no error

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions