f2c319c4ae
This is needed for cases when some type ref is resolved to proper type but has some diagnostic (e.g. this type is invisible)