Running into an interesting compiler error using Xcode 12 (swift 5.3) and higher with trailing closures. The following code compiled previously, but now emits an "Ambiguous use of 'to'" error unable to discern between the two functions below.
Curious if this is expected behavior now? Feels a little strange for the compiler to infer a single trailing closure function as "equivalent" to a function accepting a single param value (without any closures), but can also see how it fits in.
I'm surprised this ever worked, but I suppose some limitations/rules around trailing closures were probably lifted when multiple trailing closures were implemented. It now works the same way as