Skip to content

Commit b5b0ca7

Browse files
Merge pull request #1357 from nate-chandler/attr-test
[Test] Added parsing test for new attribute.
2 parents 70eb87b + d9e737a commit b5b0ca7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Tests/SwiftParserTest/AttributeTests.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,4 +547,13 @@ final class AttributeTests: XCTestCase {
547547
AssertParse("func takeRepeater(_ f: @MainActor @Sendable @escaping () -> Int) {}")
548548
AssertParse("takeRepesater { @MainActor @Sendable () -> Int in 0 }")
549549
}
550+
551+
func testLexicalLifetimes() {
552+
AssertParse(
553+
"""
554+
@_lexicalLifetimes
555+
func lexy(_ c: C) {}
556+
"""
557+
)
558+
}
550559
}

0 commit comments

Comments
 (0)