class Foo {} var foo = Foo(); foo.bar = "not fn"; foo.bar(); # expect runtime error: Can only call functions and classes.