-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Immediately receiving "error: fatalError" with "The compiler is unable to type-check this expression in reasonable time" #69621
Comments
👋🏻 UpdateI have looked into it, and the error happens because there are too many overrides of the method, thus the condition in if (isTooComplex(viable))
return SolutionResult::forTooComplex(getTooComplexRange()); fails and returns that error. In my opinion, the error is not the one developer can expect, i.e. the message should state that what TypeChecker says in the log:
Meaning that there were no candidates found in overrides which satisfy such type constraint: |
👋🏻 Hi, UpdateAfter setting
I am unsure how to make it that with the existing constraints for |
👋🏻 Update I have found that |
Description
While tinkering with
swift-syntax
I have changed the signature of the following method:to variant without generics:
I then immediately receive "error: fatalError" with "The compiler is unable to type-check this expression in reasonable time"
Steps to reproduce
16c35c5ffb529185adf1af8f0d3fe38c96b89ecb
error: fatalError
or use Xcode to seeThe compiler is unable to type-check this expression in reasonable time
Expected behavior
Code should compile
Environment
The text was updated successfully, but these errors were encountered: