wrong casing in interface extensions



Typescript 0.8.3.

interface Array
Length: number;  

complains that we have duplicate identifier Length, actually only length is defined in lib.d.ts
Closed Jun 13, 2013 at 7:21 PM by RyanCavanaugh
Fixed in develop branch


danquirk wrote Mar 1, 2013 at 1:33 AM

Thanks for the report. This is actually a more general issue with trying to extend types that come from lib.d.ts which we are currently tracking and planning to fix. For example you'll also get a duplicate identifier error here:

interface Array {
arrayDoesntHaveThisAlready: number;
orSomethingLikeThis: number;

ursuletzu wrote Mar 1, 2013 at 6:28 AM

yet following works:

interface Array
Length1 : number;