Previously type hints were not resolved due to a typo. Also trait uses were not resolved.
The NameResolver visitor tries to resolve all names to fully qualified names. It will resolve all non-dynamic names, apart from unqualified function and constant names. The latter can not be resolved properly without running the code.