<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 24, 2017, at 3:05 PM, Nate Birkholz via swift-users &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Doing a tutorial from RayWenderlich.&nbsp;<a href="https://www.raywenderlich.com/125313/make-game-like-candy-crush-spritekit-swift-part-4" class="">https://www.raywenderlich.com/125313/make-game-like-candy-crush-spritekit-swift-part-4</a><div class=""><br class=""></div><div class="">I have four bool values:&nbsp;topLeft,&nbsp;bottomLeft,&nbsp;topRight, and&nbsp;bottomRight<br class=""></div><div class=""><div class=""><br class=""></div><div class="">the following line throws an error:&nbsp;</div><div class="">let value = Int(topLeft.hashValue) | Int(topRight.hashValue) &lt;&lt; 1 | Int(bottomLeft.hashValue) &lt;&lt; 2 | Int(bottomRight.hashValue) &lt;&lt; 3<br class=""></div></div></div></div></blockquote><div><br class=""></div>yeah,</div><div><br class=""></div><div>let value1 = Int(topRight.hashValue) &lt;&lt; 1</div><div>let value2 = Int(bottomLeft.hashValue) &lt;&lt; 2</div><div>let value3 = Int(bottomRight.hashValue) &lt;&lt; 3</div><div><br class=""></div><div>let value = Int(topLeft.hashValue) | value1 | value2 | value3</div><div><br class=""></div><div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><br class=""></div><div class="">"Expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions."<br class=""></div><div class=""><br class=""></div><div class="">This seems like a bug in the compiler, no? Is there actually a way to break that up?&nbsp;</div></div></div></div></div></blockquote><div><br class=""></div>This is a known issue that got worse with the new integer oriented protocols, especially with shifts.</div><div><br class=""></div><div>Slava</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature">Nate Birkholz</div>
</div></div></div></div>
_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></blockquote></div><br class=""></body></html>