Mockable icon indicating copy to clipboard operation
Mockable copied to clipboard

Syntax error?

Open jubishop opened this issue 10 months ago • 1 comments

I'm getting an error here:

            `return hasParametrizedProtocolRequirement($0.argument)`

which is line 140 of Requirements.swift near the bottom of hasParametrizedProtocolRequirement.

the error is Cannot convert value of type 'GenericArgumentSyntax.Argument' to expected argument type 'TypeSyntax'

any ideas what im doing wrong? im using fully updated Xcode and Swift.

jubishop avatar May 29 '25 03:05 jubishop

Can you pls provide a Mockable and a SwiftSyntax version?

Kolos65 avatar May 29 '25 06:05 Kolos65

It appears Mockable doesn't compile with swift-syntax version 601.0.0.

Just pulled main and forced the swift-syntax version and got the same result.

scottrhoyt avatar Jun 10 '25 18:06 scottrhoyt

Will fix this tomorrow, thanks!

Kolos65 avatar Jun 10 '25 19:06 Kolos65

I'm just about to put up a PR to address this if you'd like.

scottrhoyt avatar Jun 10 '25 22:06 scottrhoyt