test/com/google/javascript/jscomp/TypeCheckTest.java
/** Tests that named types play nicely with subtyping. */
Tests that named types play nicely with subtyping.
Tests that named types play nicely with subtyping .
@Test
  public void testBug908625() {
    testTypes("/** @constructor */function A(){}" +
        "/** @constructor\n * @extends A */function B(){}" +
        "/** @param {B} b" +
        "\n @return {(A|undefined)} */function foo(b){return b}");
  }
@ Test public void testBug908625 ( ) { testTypes ( "/** @constructor */function A(){}" + "/** @constructor\n * @extends A */function B(){}" + "/** @param {B} b" + "\n @return {(A|undefined)} */function foo(b){return b}" ) ; }
Tests that named types play nicely with subtyping.
Tests that named types play nicely with subtyping .