Solve constraints together and in the order they are added #851

Merged
ghallak merged 6 commits from ghallak/358 into master 2021-12-16 20:54:07 +09:00
ghallak commented 2021-12-05 01:20:08 +09:00 (Migrated from gitlab.com)

Fixes: #358

This solution works by trying to find the named argument constraint (if any) that is causing the dereferencing of the record type in the field constraint to fail, and solve that, then it will try to dereference the record type again. This way the constraints won't be solved out of order.

This implements the solution mentioned in this comment https://github.com/aeternity/aesophia/issues/358#issuecomment-986550847

Fixes: #358 ~~This solution works by trying to find the named argument constraint (if any) that is causing the dereferencing of the record type in the field constraint to fail, and solve that, then it will try to dereference the record type again. This way the constraints won't be solved out of order.~~ This implements the solution mentioned in this comment https://github.com/aeternity/aesophia/issues/358#issuecomment-986550847
zxq9 commented 2021-12-10 22:44:29 +09:00 (Migrated from gitlab.com)

Created by: hanssv

Review: Dismissed

Looks good!

*Created by: hanssv* **Review:** Dismissed Looks good!
zxq9 commented 2021-12-16 00:51:08 +09:00 (Migrated from gitlab.com)

Created by: radrow

Review: Dismissed

That's a great piece of work

*Created by: radrow* **Review:** Dismissed That's a great piece of work
zxq9 commented 2021-12-16 20:50:55 +09:00 (Migrated from gitlab.com)

Created by: hanssv

Review: Approved

*Created by: hanssv* **Review:** Approved
zxq9 commented 2021-12-16 20:52:55 +09:00 (Migrated from gitlab.com)

Created by: radrow

Review: Approved

*Created by: radrow* **Review:** Approved
zxq9 commented 2021-12-16 20:54:07 +09:00 (Migrated from gitlab.com)

Merged by: ghallak at 2021-12-16 11:54:07 UTC

*Merged by: ghallak at 2021-12-16 11:54:07 UTC*
Sign in to join this conversation.
No description provided.