Skip to content

Restore Swift 6.1 support - #347

Merged
stephencelis merged 2 commits into
mainfrom
swift-6-1
Aug 7, 2026
Merged

Restore Swift 6.1 support#347
stephencelis merged 2 commits into
mainfrom
swift-6-1

Conversation

@stephencelis

Copy link
Copy Markdown
Member

A few things were broken.

A few things were broken.
@stephencelis
stephencelis requested a review from mbrandonw August 7, 2026 16:54
named(allCasePaths),
named(_$Element)
)
@attached(memberAttribute)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The #if CasePaths trait branching for macro attributes is syntax not supported in 6.1.

}
}

// NB: This overload is required due to an overload resolution bug of 'Updates[dynamicMember:]'.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noticed this was fixed by the recent JSON changes, so dropping it.

public func nullif<Other: QueryExpression>(
_ other: Other
) -> some QueryExpression<QueryValue._Optionalized>
) -> SQLQueryExpression<QueryValue._Optionalized>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

6.1 does not like this opaque result type.

}

@Test func `@Selection with empty struct`() {
@Test("@Selection with empty struct") func selectionWithEmptyStruct() {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

6.1 cannot build these identifiers.

Comment thread Package.swift
.package(
url: "https://github.com/pointfreeco/swift-dependencies",
from: "1.14.0",
traits: ["Foundation"]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

6.1 can't scope traits this way without breaking dependents. If we want we could introduce another Package file for 6.2 or 6.3, wherever it's fixed.

@stephencelis
stephencelis merged commit 92d1bc8 into main Aug 7, 2026
3 checks passed
@stephencelis
stephencelis deleted the swift-6-1 branch August 7, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant