Partial function type inference with function expressions #SCL-6089 Fixed