File tree Expand file tree Collapse file tree
Tests/PrincipleMacrosTests/Parsers Expand file tree Collapse file tree Original file line number Diff line number Diff 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> " )
You can’t perform that action at this time.
0 commit comments