We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6352d5 commit 46af7ccCopy full SHA for 46af7cc
Tests/SwiftParserTest/AttributeTests.swift
@@ -1053,4 +1053,25 @@ final class AttributeTests: ParserTestCase {
1053
"""
1054
)
1055
}
1056
+
1057
+ func testLifetimeAttribute() {
1058
+ assertParse(
1059
+ """
1060
+ @lifetime(ne)
1061
+ func foo(_ ne: NE) -> NE { ne }
1062
1063
+ )
1064
1065
1066
+ @lifetime(neOut: neIn)
1067
+ func foo(_ neOut: inout NE, _ neIn: NE) { neOut = neIn }
1068
1069
1070
1071
1072
+ @lifetime(borrow ne)
1073
1074
1075
1076
+ }
1077
0 commit comments