before refactor
Type check object literals declared before typed function call