Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions #4

Closed
steve21124 opened this issue Aug 11, 2017 · 4 comments

Comments

@steve21124
Copy link

fyi: failing to compile in Swift 4

let components = (0...3).map { (ec[$0] - sc[$0]) * abs(ratio) + sc[$0] }

@shoheiyokoyama
Copy link
Owner

Hi @steve21124

What is your Xcode version?

@steve21124
Copy link
Author

Xcode 9 beta 4. I am closing this for now since I am not using gemini yet

@4np
Copy link

4np commented Aug 22, 2017

Same for Version 9.0 beta 6 (9M214v)

Lifting ratio out seems to work, e.g.:

        let absoluteRatio = abs(ratio)
        let components = (0...3).map {
            (ec[$0] - sc[$0]) * absoluteRatio + sc[$0]
        }
@shoheiyokoyama
Copy link
Owner

I resolved this problem. a293931

@steve21124 @4np
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants