Re: [swift-users] Refining generics in classes

2017-11-16 Thread Itai Ferber via swift-users
Hi Jon, To clarify for those wondering, this is happening because the `doAThing()` method dispatches statically to `doSomething()` based on `NetworkRequests`’s `T`; since `doAThing()` isn’t overridden in `CompressedNetworkRequest`, the method is inherited directly, including that static dispa

Re: [swift-users] Refining generics in classes

2017-11-16 Thread Fred Appelman via swift-users
I do get the output: One: Uno Two: Dos But I also get a crash error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=EXC_I386_GPFLT). — Fred From: Jon Shier via swift-users Reply: Jon Shier Date: 16 November 2017 at 05:43:06 To: Седых Александр via swift-users Subject:  [swift-u

[swift-users] Refining generics in classes

2017-11-15 Thread Jon Shier via swift-users
Swift Users: I have a generics use case which has somewhat stumped me. I have two related protocols, JSONDecodable and CompressedDecodable, and CompressedDecodable inherits from JSONDecodable (though that relationship isn’t strictly necessary). I also have a generic function that