Skip to content

Commit 8b0a4bf

Browse files
committed
-
1 parent f398c48 commit 8b0a4bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tests/PrincipleMacrosTests/Parsers/PropertiesParserTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ internal struct PropertiesParserTests {
1717
@Test
1818
func testStoredLet() throws {
1919
let decl: DeclSyntax = """
20-
public static let myLet: Int?
20+
public internal(set) static let myLet: Int?
2121
"""
2222
let property = try #require(PropertiesParser.parse(declaration: decl, in: context).first)
2323
#expect(property.kind == .stored)
2424
#expect(property.mutability == .immutable)
2525
#expect(property.accessControlLevel?.trimmedDescription == "public")
26-
#expect(property.setterAccessControlLevel?.trimmedDescription == "public")
26+
#expect(property.setterAccessControlLevel?.trimmedDescription == "internal")
2727
#expect(property.typeScopeSpecifier?.trimmedDescription == "static")
2828
#expect(property.trimmedName.description == "myLet")
2929
#expect(property.inferredType.description == "Optional<Int>")

0 commit comments

Comments
 (0)