Skip to content

Commit 48e3c55

Browse files
committed
Add test case for #1025
1 parent 3e12cf2 commit 48e3c55

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
@@ -1295,6 +1295,15 @@ final class DeclarationTests: XCTestCase {
12951295
]
12961296
)
12971297
}
1298+
1299+
func testIssue1025() {
1300+
AssertParse("""
1301+
struct Math {
1302+
public static let pi = 3.14
1303+
@available(*, unavailable) init() {}
1304+
}
1305+
""")
1306+
}
12981307
}
12991308

13001309
extension Parser.DeclAttributes {

0 commit comments

Comments
 (0)