Merge pull request #85145 from a7medev/autodiff-comma-fix-its

[Diagnostics] Add missing fix-its for unexpected/expected comma in attribute arguments
This commit is contained in:
Hamish Knight
2025-10-27 09:08:16 +00:00
committed by GitHub
6 changed files with 25 additions and 20 deletions

View File

@@ -452,7 +452,7 @@ public func missingVersionFunc3() {}
@backDeployed(before: macOS 0) // expected-warning {{expected version number in '@backDeployed' attribute; this is an error in the Swift 6 language mode}}
public func missingVersionFunc4() {}
@backDeployed(before: macOS 12.0, iOS 15.0,) // expected-error {{unexpected ',' separator}}
@backDeployed(before: macOS 12.0, iOS 15.0,) // expected-error {{unexpected ',' separator}} {{43-44=}}
public func unexpectedSeparatorFunc() {}
@backDeployed(before: macOS 12.0.1) // expected-warning {{'@backDeployed' only uses major and minor version number}}