I may be missing something completely basic, but I was developing a Swift app following the guidance of a tutorial, which includes adding a protocol to a custom struct. However, when I add the protocol (Hashable) to my struct declaration, I get no helpful error warning me that I have not yet defined the required property and method (from Equatable).
I know I haven't implemented the protocol, and I know it should give me an error according to everything I read, yet Xcode is allowing me to build the project with no compiler errors in addition to giving me none of the editor's compile warnings that appear quickly in the tutorial example. I thought maybe there was a default implementation behind the scenes even though the documentation does not mention any, but when I test the compiled version without the appropriate property or method, the app definitely does not work correctly. The app does work correctly when I do correctly implement the hash var and == func, so why is the Swift compiler not kicking back my source code as incomplete?
What am I missing? Is there somewhere I could have opted to ignore Protocol requirements??
As an aside, apparently because the error never appears, the option to "fix" the error, or insert required protocol stubs, is disabled.
I updated to the latest Xcode release.