Display a nicer error when people try to use functions as objects.
Display a nicer error when people try to use functions as objects.

BUG=
R=scudette@gmail.com

Review URL: https://codereview.appspot.com/298980043 .

google/dotty,google/dotty