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

Build periodically fails with error: The compiler is unable to type-check this expression in reasonable time #761

Open
Alexeichua opened this issue Jun 10, 2021 · 1 comment

Comments

@Alexeichua
Copy link

Alexeichua commented Jun 10, 2021

It happens in the source:
/Pods/Macaw/Source/model/draw/ColorMatrix.swift:60:17: The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions.

Enabling source editing and adding type to expression fixes the problem. New code look as follows:
let a: (Int) -> Double = { i in
m1[i] + c * m2[i] + s * m3[i]
}

Added type (Int) -> Double here. It would be great to have it out of box.

@mohan083
Copy link

@Alexeichua
Updating pod file like this

pod "Macaw", "0.9.7"

solved my issue

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

No branches or pull requests

2 participants