We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44ff7e5 commit 6d624aaCopy full SHA for 6d624aa
test/attr/attr_availability_swiftpm_v4.swift
@@ -79,3 +79,10 @@ unconditionallyRenamed() // expected-error {{'unconditionallyRenamed()' has been
79
func unconditionallyRenamedAndIntroducedLater() {} // expected-note {{'unconditionallyRenamedAndIntroducedLater()' has been explicitly marked unavailable here}}
80
81
unconditionallyRenamedAndIntroducedLater() // expected-error {{'unconditionallyRenamedAndIntroducedLater()' has been renamed to 'shortFour'}}
82
+
83
+func testQuery() {
84
+ if #available(_PackageDescription 4.0) { // expected-error {{PackageDescription version checks not allowed in #available(...)}}
85
+ // expected-error@-1 {{condition required for target platform}}
86
+ shortFourPointOh()
87
+ }
88
+}
0 commit comments