Ala'a Al Hallaq
Ala'a Al Hallaq

Reputation: 505

xCode 12.5 swift 5.4 type inference issue, result not used

Hello I installed xcode 12.5 yesterday and I had a working project that I uploaded using xcode 12.3 3 days ago, I noticed after installing xcode 12.5 the following issue :

xcode type inference issue

and to fix the issue I had to specify the list variable type as: enter image description here

I need to know is it an issue in the compiler that it is not reliable to be used, or the semantics of the language is updated !!

Upvotes: 0

Views: 105

Answers (1)

matt
matt

Reputation: 535247

Instead of the explicit type, try putting a return keyword inside the closure:

return ModelDeliveryOrderFilterInput...

This should clarify your intentions to the compiler.

Upvotes: 1

Related Questions