Skip to content

error: cannot convert value of type 'T.IndexDistance' to expected argument type 'Int' #91

@pohetsn

Description

@pohetsn

I've encountered the following error message when building Surge with Carthage. My environment is Xcode 9.2, and I have github "mattt/Surge" ~> 2.1.0 in the Cartfile. Not sure where the T.IndexDistance comes from. Thanks for the help

<project path>/Carthage/Checkouts/Surge/Sources/Surge/Matrix.swift:41:34: error: cannot convert value of type 'T.IndexDistance' to expected argument type 'Int'
        self.init(rows: contents.count, columns: contents.first!.count, repeatedValue: 0.0)
                        ~~~~~~~~~^~~~~
                        Int(          )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions