Swift trailing closure stopped working when I moved the class into a Framework

Hi guys,

I had a LocationManager class the performs various tasks and uses trailing closure.
Here is a method signature :

func getAdresseForLocation(location: CLLocationCoordinate2D, addressType: LocationManagerAddressType, completion: (Address?) -> Void)

For various reasons, I decided to move some file into a Framework, donc I declared my class and method public as follows :

public func getAdresseForLocation(location: CLLocationCoordinate2D, addressType: LocationManagerAddressType, completion: (Address?) -> Void)

But now I get a compilation error from the trailing closure :

Cannot convert value of type '(Address?) -> ()' to expected argument type '(Address?) -> (Void)'

I tried to change the return type to (), (Void), return Void or (Void) from the closure, nothing works.
Do you have any idea what’s going on?

Thakns.

have you tried defining the type for Address? Like AnyObject:Address?

No but Address is a pure Swift struct so I don’t think I can use AnyObject:Address right?