Complete type inference dependent on function literals and expected type for variable as function calls not for 'invoke' calls