Skip to content

ts code in readme.md that doesn't compile #6

@DustinWehr

Description

@DustinWehr

What version of the typescript compiler are you using that lets you write these?

interface integer extends number {}  
class FooClass extends BarClass, BazClass implements QuxInterface { } 

In tsc 1.5.* and 1.6.2, and if I remember correctly even some version of 1.4, neither of those compile. The errors given by tsc 1.6.2 are:
Error:(6, 23) TS2304: Cannot find name 'number'.
Error:(9, 35) TS1174: Classes can only extend a single class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions