Since the usage of #<w: IT> here is an idiomatic construction, it has some special handling in the lexicon to indicate that its meaning depends on what it is being used to describe.
#<w: IT> here is taken to mean #<TEMPERATURE>.