[SR-13007] provide something like "implements func foo()" to mark a function as implementing a protocol requirement (similar to "override func") #55452
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Additional Detail from JIRA
md5: 932d1775b82fde68e3c86848e8289f89
Issue Description:
I'm sure this must be a dupe but I can't find it.
Let's consider this protocol
If a user now tries to implement this but gets say the type wrong
then they won't know they didn't actually implement the protocol's method 🙁.
What I'd like to see is
which would compiler error saying that this method doesn't implement any protocol methods. All in all very similar to
override func
.The text was updated successfully, but these errors were encountered: