You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assume that you have a private typealias for service results, and you wish to use them in a private extension, then you are presented with an error that the function inside the private extension, needs to be marked as private. It seems that the compiler is not recognising that the code within the extension is already private.
Here is a code example showing the problem:
structSomeStruct{privatetypealiasServiceResult<T:Decodable>=Result<T,Error>?}privateextensionSomeStruct{// Error reported that 'process' function needs to be private, even though it is within a private extension.func process(result:ServiceResult<Int>){}// Works correctlyprivatefunc process2(result:ServiceResult<Int>){}}
The same also occurs if you were to declare
privatestructPrivateStruct{}
Inside of SomeStruct, and then have this as a parameter in a function inside the extension.
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: 5692a2324d53870d2bf0000c250f75ef
Issue Description:
Assume that you have a private typealias for service results, and you wish to use them in a private extension, then you are presented with an error that the function inside the private extension, needs to be marked as private. It seems that the compiler is not recognising that the code within the extension is already private.
Here is a code example showing the problem:
The same also occurs if you were to declare
Inside of
SomeStruct
, and then have this as a parameter in a function inside the extension.The text was updated successfully, but these errors were encountered: