Skip to content

Commit edacf85

Browse files
committed
[Test] Test no fix-it for access-control set in place of unrelated code
1 parent 3cd3c04 commit edacf85

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/attr/accessibility.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,3 +347,10 @@ package extension PkgGenericStruct where Param: InternalProto {} // expected-err
347347
extension PkgGenericStruct where Param: InternalProto {
348348
package func foo() {} // expected-error {{cannot declare a package instance method in an extension with internal requirements}} {{3-10=internal}}
349349
}
350+
351+
func f() {}
352+
private( // expected-error{{expected 'set' as subject of 'private' modifier}} {{9-9=set)}}
353+
if true { // expected-error{{expected declaration}} {{none}}
354+
f()
355+
}
356+
var unrelatedVar = "Swift"

0 commit comments

Comments
 (0)