Swift: expression too complex

Originator:garth
Number:rdar://19778509 Date Originated:09-Feb-2015 11:42 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 6.3b1
Classification:Other Bug Reproducible:Always
 
The attached project should give an “expression too complex” error in LinearMotorTests.swift -> testSimpleLPProblem. The expression is just:

        3 * x[0] + x[1] - 2 * x[3] - x[4] - x[7] <= 14

Admittedly, all of the operators and most of the operands are custom. But it still doesn’t seem like there’s a lot of ambiguity involved. I just thought I’d mention that this error message is still occurring as of Swift 1.2. 

I’m happy to provide more detail if it would be helpful.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!