Skip to content
This repository was archived by the owner on Jan 2, 2026. It is now read-only.
This repository was archived by the owner on Jan 2, 2026. It is now read-only.

Parameter Packs get messed up #36

@adam-rocska

Description

@adam-rocska

Swift 5.9 feature: https://github.com/apple/swift-evolution/blob/main/proposals/0393-parameter-packs.md
Also see its related release notes: https://www.swift.org/blog/swift-5.9-released/

Given a code as follows:

import Beton

extension Store {
  public static func composite<each Store>(
    _ stores: repeat each Store

the plugin removes the space between each Storable and repeat each Storable, yielding the following incorrect result:

import Beton

extension Store {
  public static func composite<eachStore>(
    _ stores: repeateachStore

The real swift-format tool from Apple doesn't do this. Tested both with the homebrew and the Swift Package Manager installed editions. Only the VSCode plugin does this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions