Xcode 9 release, fails in both Swift 3.2 and 4.0.
I want to restrict a function to only work w/ reference types. In protocols this is expressed using `protocol A : class` and in generics as `T: AnyObject`. So I assumed this would work:
Why is a `protocol A: class` not an `AnyObject`? It should be exactly the same?
But OK, so lets assume `AnyObject` is something different. And indeed I can do this:
But this still results in the same issue.
I'm pretty sure this is a bug or oversight, don't know
P.S. My real code goes more like this, but the above is the easier version: