Type checker's expected and inferred types