We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cd3c04 commit edacf85Copy full SHA for edacf85
test/attr/accessibility.swift
@@ -347,3 +347,10 @@ package extension PkgGenericStruct where Param: InternalProto {} // expected-err
347
extension PkgGenericStruct where Param: InternalProto {
348
package func foo() {} // expected-error {{cannot declare a package instance method in an extension with internal requirements}} {{3-10=internal}}
349
}
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