Why is the jsdoc validator failing in this scenario?

This is my code in Webstorm

/**@namespace*/
var Foo = new function() {

 /**@class*/

 this.Bar = function() {

 }
}
var Baz = Foo;

/**@extends Foo.Bar*/
var BarExFoo = function() {
}

/**@extends Baz.Bar*/
var BarExBaz = function() {
}


The inspection is failing on the last jsdoc comment. It doesn't recognices Bar as member of Baz. I need to use an assignment like this in order to use Foo from another module. Is there a walkaround?

Please sign in to leave a comment.