[swift-users] Redundant superclass constraint

2017-10-24 Thread Phil Kirby via swift-users
Original StackOverflow post: https://stackoverflow.com/questions/46924554/redundant-superclass-constraint-in-swift-4 I'm getting a Redundant superclass constraint... warning in swift4: (paste in a playground) import CoreData class Item : NSManagedObject {} protocol DataSourceProtocol { asso

Re: [swift-users] Expression was too complex to be solved in reasonable time

2017-10-24 Thread Nate Birkholz via swift-users
Thanks, Slava! On Tue, Oct 24, 2017 at 3:05 PM, Slava Pestov wrote: > > > On Oct 24, 2017, at 3:05 PM, Nate Birkholz via swift-users < > swift-users@swift.org> wrote: > > Doing a tutorial from RayWenderlich. https://www. > raywenderlich.com/125313/make-game-like-candy-crush-spritekit-swift-part-

Re: [swift-users] Expression was too complex to be solved in reasonable time

2017-10-24 Thread Slava Pestov via swift-users
> On Oct 24, 2017, at 3:05 PM, Nate Birkholz via swift-users > wrote: > > Doing a tutorial from RayWenderlich. > https://www.raywenderlich.com/125313/make-game-like-candy-crush-spritekit-swift-part-4 > >

[swift-users] Expression was too complex to be solved in reasonable time

2017-10-24 Thread Nate Birkholz via swift-users
Doing a tutorial from RayWenderlich. https://www.raywenderlich.com/125313/make-game-like-candy-crush-spritekit-swift-part-4 I have four bool values: topLeft, bottomLeft, topRight, and bottomRight the following line throws an error: let value = Int(topLeft.hashValue) | Int(topRight.hashValue) << 1