test/com/google/javascript/jscomp/TypeCheckTest.java
/**
   * Tests that assigning two untyped functions to a variable whose type is inferred and calling
   * this variable is legal.
   */
Tests that assigning two untyped functions to a variable whose type is inferred and calling
this variable is legal.
Tests that assigning two untyped functions to a variable whose type is inferred and calling this variable is legal .
@Test
  public void testBug911118a() {
    TypedScope s = parseAndTypeCheckWithScope("var a = function(){};").scope;
    JSType type = s.getVar("a").getType();
    assertThat(type.toString()).isEqualTo("function(): undefined");
  }
@ Test public void testBug911118a ( ) { TypedScope s = parseAndTypeCheckWithScope ( "var a = function(){};" ) . scope ; JSType type = s . getVar ( "a" ) . getType ( ) ; assertThat ( type . toString ( ) ) . isEqualTo ( "function(): undefined" ) ; }
Tests that assigning two untyped functions to a variable whose type is inferred and calling
 this variable is legal.
Tests that assigning two untyped functions to a variable whose type is inferred and calling this variable is legal .
// verifying the type assigned to function expressions assigned variables