Definition file confused with Modules & extends. v.0.8.3.0

Topics: General
Jun 4, 2013 at 1:56 PM
Hi,

Not sure if this is a known issue, I've tried doing a search first but didn't find anything similar.

If I use modules and extends on modules the definition file can get confused.

Here is an example that might explain it better ->
module Mod {
    export class Module {
        test() {  }
    }
}

module Mod.SubMod {
    export class Module extends Mod.Module {
    }
}
The compiled .js file for this appears to be fine, but the definition file produces this ->
module Mod {
    class Module {
        public test(): void;
    }
}
module Mod.SubMod {
    class Module extends Module {   //this should be  extends Mod.Module
    }
}
Developer
Jun 4, 2013 at 7:07 PM
Yeah, this was a bug in 0.8.3 that has since been fixed. You'll find it working correctly in the latest bits, I don't recall offhand whether the fix was in the 0.9.0-alpha release or came in after that.