test/com/google/javascript/jscomp/TypeCheckTest.java
// If the property has no initializer, the HIDDEN_SUPERCLASS_PROPERTY_MISMATCH warning is missed.
If the property has no initializer, the HIDDEN_SUPERCLASS_PROPERTY_MISMATCH warning is missed.
If the property has no initializer the HIDDEN_SUPERCLASS_PROPERTY_MISMATCH warning is missed .
@Test
  public void testBadSuperclassInheritance3() {
    testTypes(lines(
        "/** @constructor */",
        "function Foo() {}",
        "/** @type {number} */",
        "Foo.prototype.myprop = 2;",
        "",
        "/** @constructor @extends {Foo} */",
        "function Bar() {}",
        "/** @override @type {string} */",
        "Bar.prototype.myprop;"));
  }
@ Test public void testBadSuperclassInheritance3 ( ) { testTypes ( lines ( "/** @constructor */" , "function Foo() {}" , "/** @type {number} */" , "Foo.prototype.myprop = 2;" , "" , "/** @constructor @extends {Foo} */" , "function Bar() {}" , "/** @override @type {string} */" , "Bar.prototype.myprop;" ) ) ; }
If the property has no initializer, the HIDDEN_SUPERCLASS_PROPERTY_MISMATCH warning is missed.
If the property has no initializer the HIDDEN_SUPERCLASS_PROPERTY_MISMATCH warning is missed .