test/com/google/javascript/jscomp/TypeCheckTest.java
/** test structural interface matching for object literals */
test structural interface matching for object literals
test structural interface matching for object literals
@Test
  public void testStructuralInterfaceMatching39() {
    testTypesWithExtraExterns(
        lines(
            "/** @record */",
            "function I2() {}",
            "/** @type {number} */",
            "I2.prototype.length;"),
        lines(
            "/** @type {I2} */",
            "var o1 = {length : 'test'};"),
        lines(
            "initializing variable",
            "found   : {length: string}",
            "required: (I2|null)"));
  }
@ Test public void testStructuralInterfaceMatching39 ( ) { testTypesWithExtraExterns ( lines ( "/** @record */" , "function I2() {}" , "/** @type {number} */" , "I2.prototype.length;" ) , lines ( "/** @type {I2} */" , "var o1 = {length : 'test'};" ) , lines ( "initializing variable" , "found   : {length: string}" , "required: (I2|null)" ) ) ; }
test structural interface matching for object literals
test structural interface matching for object literals