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 testBug911118b() {
    testTypes("function nullFunction() {};" +
        "var foo = nullFunction;" +
        "foo = function() {};" +
        "foo();");
  }
@ Test public void testBug911118b ( ) { testTypes ( "function nullFunction() {};" + "var foo = nullFunction;" + "foo = function() {};" + "foo();" ) ; }
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 bug example