node-ts2hx icon indicating copy to clipboard operation
node-ts2hx copied to clipboard

ts code in readme.md that doesn't compile

Open DustinWehr opened this issue 8 years ago • 4 comments

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.

DustinWehr avatar Dec 05 '15 04:12 DustinWehr