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
Upon running the example below, you'll quickly realize that the getter function errors, whereas the normal function does not.
Even though they consist of the same code.
The issue seems to be with unwrapping return values in class getters.
What should happen instead?
I think most of us would simply expect both these code snippets to work the exact same, aka to unwrap the return values without any issues.
Introduction / Explenation
Upon running the example below, you'll quickly realize that the getter function errors, whereas the normal function does not.
Even though they consist of the same code.
The issue seems to be with unwrapping return values in class getters.
What should happen instead?
I think most of us would simply expect both these code snippets to work the exact same, aka to unwrap the return values without any issues.
Reproduction
Code
Playground Link
Click here
The text was updated successfully, but these errors were encountered: