Uploaded image for project: 'Swift'
  1. Swift
  2. SR-10069

Local functions cannot be overloaded

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: Compiler
    • Labels:
      None
    • Environment:

      Xcode 10.2 beta 2

      Description

      These don't  compile:

      1. Nested overloads with different parameter types.
      2. Calling a nested function before an overload is defined later in the function.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              Jessy Jessy Catterwaul
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: