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
Xcode 10.2 gives multiple warnings in multiple files:
'public' modifier is redundant for static method declared in a public extension, for example
in CentralMoment.swift line 36:
It seems that the access level of the extension is the default access level of each method in the extension. To get rid of the warning, one must remove these public access modifiers, or change the default access level of each extension to something other than public.
Xcode 10.2 gives multiple warnings in multiple files:
'public' modifier is redundant for static method declared in a public extension, for example
in CentralMoment.swift line 36:
public static func centralMoment(_ values: [Double], order: Int) -> Double? {
It seems that the access level of the extension is the default access level of each method in the extension. To get rid of the warning, one must remove these public access modifiers, or change the default access level of each extension to something other than public.
This stack overflow post addresses the issue:
https://stackoverflow.com/questions/34470589/will-marking-swift-extension-public-change-the-property-in-the-extension-to-be-i
The text was updated successfully, but these errors were encountered: