Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning for Methods in Protocol when satisfying conformance in extension #45

Closed
RalfK92 opened this issue Feb 17, 2020 · 4 comments
Closed

Comments

@RalfK92
Copy link

RalfK92 commented Feb 17, 2020

protocol Protocol {
var variable: Bool { get }
func function(parameter: String?) -> String?
}

Implementing this Protocol in a class and satisfying conformance in extension works for variable but not for function.

class Class: Protocol { }

extension Class {
var variable: Bool { // no warning
return "Temp"
}

func function (parameter: String?) -> { // warning
return parameter
}
}

@woshiccm
Copy link
Owner

Thanks, will fix it

@victorrr
Copy link

What is the status with this fix? If you have a lot of protocols you get spammed with false Pecker warnings

@mthole
Copy link

mthole commented Apr 11, 2020

Used Pecker for the first time today and am loving it. I'm also running into this issue, though, so wanted to chime in and say 'me too'. Thanks for this tool!

@woshiccm
Copy link
Owner

woshiccm commented Jul 8, 2020

this issue had been resolved in new version 0.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants