You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ufcpp, the escape scope of the local is set by the initializer unless the local is explicitly declared scoped.
For a, the initializer value new A() can be returned from the current method, so a is unscoped. For b, the initializer cannot escape the current method, so b is implicitly scoped.
The error for a.X = ref x; can be avoided by declaring a as scoped var a = new A();.
See LDM notes.
Relates to test plan #59194
The text was updated successfully, but these errors were encountered: