test/com/google/javascript/jscomp/TypeCheckTest.java
// be resolved via the registry and not via properties.
be resolved via the registry and not via properties.
be resolved via the registry and not via properties .
@Test
  public void testResolutionViaRegistry1() {
    testTypes("/** @constructor */ u.T = function() {};\n" +
        "/** @type {(number|string)} */ u.T.prototype.a;\n" +
        "/**\n" +
        "* @param {u.T} t\n" +
        "* @return {string}\n" +
        "*/\n" +
        "var f = function(t) { return t.a; };",
        "inconsistent return type\n" +
        "found   : (number|string)\n" +
        "required: string");
  }
@ Test public void testResolutionViaRegistry1 ( ) { testTypes ( "/** @constructor */ u.T = function() {};\n" + "/** @type {(number|string)} */ u.T.prototype.a;\n" + "/**\n" + "* @param {u.T} t\n" + "* @return {string}\n" + "*/\n" + "var f = function(t) { return t.a; };" , "inconsistent return type\n" + "found   : (number|string)\n" + "required: string" ) ; }
be resolved via the registry and not via properties.
be resolved via the registry and not via properties .