swiftlang / swift-syntax

A set of Swift libraries for parsing, inspecting, generating, and transforming Swift source code.
Apache License 2.0
3.2k stars 405 forks source link

KeyPath `.self` cannot be resolved in earlier Swift versions #2796

Closed AppAppWorks closed 1 month ago

AppAppWorks commented 1 month ago

Description

2792 introduced a bug in BodyMacroTests.swift:181,

return body.map(\.self)

where \.self cannot be resolved by the compiler of some earlier Swift versions.

Steps to Reproduce

No response

ahoppen commented 1 month ago

Synced to Apple’s issue tracker as rdar://133571001