def METHOD_NAME(self):
    self.run_test("""
                  def function_alias2(n):
                    def p(): return 0
                    def q(): return 1
                    if n:
                        g = p
                    else:
                        g = q
                    return g()
                  """,
                  1,
                  function_alias2=[int])