In case of `T.foo()` call, the compiler reports `UNRESOLVED_REFERENCE` on `foo` instead of `NO_CLASS_OBJECT` on `T`.