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 498b0b8 commit 71f3b3bCopy full SHA for 71f3b3b
Sources/protoc-gen-swift/FileGenerator.swift
@@ -91,9 +91,9 @@ class FileGenerator {
91
p.print("\(comments)import Foundation")
92
93
if self.generatorOptions.implementationOnlyImports,
94
- self.generatorOptions.visibility == .public {
+ self.generatorOptions.visibility != .internal {
95
errorString = """
96
- Cannot use @_implementationOnly imports when the proto visibility is public.
+ Cannot use @_implementationOnly imports when the proto visibility is public or package.
97
Either change the visibility to internal, or disable @_implementationOnly imports.
98
"""
99
return
0 commit comments