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 de6dc6b commit 3488d77Copy full SHA for 3488d77
test/attr/ignore_deprecation_warnings.swift
@@ -19,6 +19,12 @@ var deprecatedVariable = ""
19
@available(*, deprecated)
20
struct deprecatedType {}
21
22
+
23
+@ignoreDeprecationWarnings
24
+// FIXME: deprecation warnings are still diagnosed for top-level variable declaration
25
+// this has to do with Swift diagnosing deprecation warnings for deprecated top-level variables which are assigned to a deprecated property
26
+var topLevelDecl = deprecatedVariable() // expected-warning {{'deprecatedVariable' is deprecated}}
27
28
@ignoreDeprecationWarnings
29
func x() {
30
deprecatedFunc()
0 commit comments