| OLD | NEW |
| 1 /** | 1 /** |
| 2 * @constructor | 2 * @constructor |
| 3 */ | 3 */ |
| 4 Base = function() {} | 4 Base = function() {} |
| 5 | 5 |
| 6 /** | 6 /** |
| 7 * @constructor | 7 * @constructor |
| 8 * @extends {Base} | 8 * @extends {Base} |
| 9 */ | 9 */ |
| 10 DerivedNoProto = function() {} | 10 DerivedNoProto = function() {} |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 /** | 81 /** |
| 82 * @extends {Base} | 82 * @extends {Base} |
| 83 */ | 83 */ |
| 84 GoodDerived = function() { | 84 GoodDerived = function() { |
| 85 Base.call(this); | 85 Base.call(this); |
| 86 } | 86 } |
| 87 | 87 |
| 88 GoodDerived.prototype = { | 88 GoodDerived.prototype = { |
| 89 __proto__: Base.prototype | 89 __proto__: Base.prototype |
| 90 } | 90 } |
| 91 |
| 92 /** |
| 93 * @constructor |
| 94 * @template T |
| 95 */ |
| 96 var Set = function() {} |
| 97 |
| 98 Set.prototype = { |
| 99 add: function(item) {}, |
| 100 remove: function(item) {}, |
| 101 /** @return {boolean} */ |
| 102 contains: function(item) { return true; } |
| 103 } |
| 104 |
| 105 /** |
| 106 * @constructor |
| 107 * @extends {Set.<T>} |
| 108 * @template T |
| 109 */ |
| 110 var GoodSetSubclass = function() |
| 111 { |
| 112 Set.call(this); |
| 113 } |
| 114 |
| 115 GoodSetSubclass.prototype = { |
| 116 __proto__: Set.prototype |
| 117 } |
| 118 |
| 119 /** |
| 120 * @constructor |
| 121 * @extends {Set.<T>} |
| 122 * @template T |
| 123 */ |
| 124 var BadSetSubclass = function() |
| 125 { |
| 126 } |
| 127 |
| 128 BadSetSubclass.prototype = { |
| 129 } |
| OLD | NEW |