Skip to content

Commit d2c1a1c

Browse files
committed
Add test case for #1025
1 parent 1dfe31a commit d2c1a1c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Tests/SwiftParserTest/DeclarationTests.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,6 +1215,15 @@ final class DeclarationTests: XCTestCase {
12151215
// `actor` cannot recover from a missing identifier since it's contextual
12161216
// based on the presence of the identifier.
12171217
}
1218+
1219+
func testIssue1025() {
1220+
AssertParse("""
1221+
struct Math {
1222+
public static let pi = 3.14
1223+
@available(*, unavailable) init() {}
1224+
}
1225+
""")
1226+
}
12181227
}
12191228

12201229
extension Parser.DeclAttributes {

0 commit comments

Comments
 (0)