Open fredj opened 8 years ago
Since 08606a76, the compiler warn if abstract methods appear in concrete classes:
/** * @abstract * @constructor */ C = function() { this.foo = -1; }; /** * @abstract */ C.prototype.add = function() {};
But it is not the case when goog.abstractMethod is used:
goog.abstractMethod
/** * @constructor */ C = function() { this.foo = -1; }; /** * */ C.prototype.add = goog.abstractMethod;
(and goog.abstractMethod doesn't require the constructor to be abstract.)
I haven't added this warning to goog.abstractMethod due to the risk of breaking many internal projects at Google.
Since 08606a76, the compiler warn if abstract methods appear in concrete classes:
But it is not the case when
goog.abstractMethod
is used:(and
goog.abstractMethod
doesn't require the constructor to be abstract.)