Replies: 2 comments 6 replies
-
Somewhat similar suggestion, but for pointers instead of arrays: #4895. |
Beta Was this translation helpful? Give feedback.
6 replies
-
I wanted to ping this issue because when you encounter this as a use it is quite unexpected. This will occur in many designs and seems worth fixing. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Consider:
If my understanding is correct, the reason for the error in l2 is that according to the standard:
However in this case I believe the compiler can be improved to detect that the new expression needs to be a new
Employee
and notEmployee[]
Thanks
Beta Was this translation helpful? Give feedback.
All reactions