[Bug][compiler-v2] Reference safety has different behavior when mut refs and inline functions are involved #13177
Labels
bug
Something isn't working
compiler-v2-stable
compiler-v2
stale-exempt
Prevents issues from being automatically marked and closed as stale
馃悰 Bug
Consider the following Move program:
When it is compiled with v1, we get a reference safety error ("invalid operation, could create dangling a reference"). When compiled with v2, there is no compiler error or runtime error.
Because this is a divergent behavior between the compiler, I am opening an issue to track it; we may decide this is not an actual bug, but that v2 just accepts more (safe) programs than v1.
The text was updated successfully, but these errors were encountered: