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

QoI: Warn about unlabeled parameters following a variadic parameter

    XMLWordPrintable

    Details

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

      OS X 10.11.6, Xcode 8 beta 6

      Description

      After implementation of SE-0111 variable argument closures seem to be broken.

      private let output: (Any..., String, String) -> Void = print
      output("does", "not", "work")
      output("also", "does", "not", "work")
      

      Compilation fails with "Missing argument for parameter #2 in call"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              matthew carroll Matthew Carroll
              Reporter:
              pawlowski Alex Pawlowski
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: