4 Replies
      Latest reply on May 18, 2019 5:58 AM by Pendragon
      Pendragon Level 1 Level 1 (0 points)

        No idea if this is a bug if not why is it happening ? ...

         

        static func writeJSON(_ url: URL,_ array: [Array],_ completion: ((_ success: Bool,_ error: String) -> Void)?)

         

        Doing this works fine but ...

         

        static func writeJSON(_ url: URL,_ array: [Array]? = nil,_ completion: ((_ success: Bool,_ error: String) -> Void)?)

         

        Doesn't work ? Yet optional Parameters without the optional Completion work fine, just not both together.