Replies: 1 comment
-
It looks like a parser bug when reproduced in sharplab: |
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.
-
As a part of the unsafer unsafeness in C# 11, it seems that we can now take pointers to objects like so:
But it seems like it doesn't work properly for array types:
VS even seems to think this should be possible:

In case it isn't clear why this is an issue: the reason this would be an issue is you wouldn't be able to cast another pointer to this type, or specify a parameter of this type.
I assume it is probably a bug or oversight that you can't declare it, just thought I'd mention it and I hope it gets a bug fix in the next compiler/sdk patch.
Beta Was this translation helpful? Give feedback.
All reactions