[Bug][move-compiler-v2] V2 error messaging should show the assignments that lead to the type constraints #14634
Labels
bug
Something isn't working
compiler-v2-stable
compiler-v2
stale-exempt
Prevents issues from being automatically marked and closed as stale
🐛 Bug
Two test cases illustrate this bug:
Case 1
This test case:
V2 shows an error like:
where the code is:
So the fact that the "left-hand side"
f
has type&u64
is indirect.V1 has a better error message, which provides some context that explains the type of
f
:.
Case 2
In this test case:
V2 says something like:
where the relevant code is:
so it points to the declaration of
x
but doesn't show the assignment which tries to assign a tuple-typed value to it.The text was updated successfully, but these errors were encountered: