Skip to content

Commit de6dc6b

Browse files
committed
Add tests for declerations using multiple attributes with @ignoreDeprecationWarnings
1 parent 2a26317 commit de6dc6b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

test/attr/ignore_deprecation_warnings.swift

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,14 @@ class anotherType {
5252

5353
let shouldntWarn1 = deprecatedType()
5454
let shouldntWarn2 = deprecatedFuncWithReturnValue2()
55-
}
55+
}
56+
57+
@inlinable
58+
@ignoreDeprecationWarnings
59+
func multipleAttrsFunc() -> deprecatedType {
60+
return deprecatedType()
61+
}
62+
63+
@ignoreDeprecationWarnings
64+
@available(iOS 15.0, *)
65+
var multipleAttrsVar = 3

0 commit comments

Comments
 (0)