Skip to content

Xcode 10.2 warnings  #16

Description

@mannd

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions