Why does the following code
public ref struct X abstract sealed {
literal int Y = 1;
};
give the error C4693: 'X' a sealed abstract class cannot have any instance
members 'Y'?
In the help it says that literal implies static.
Ben Voigt [C++ MVP] - 24 Sep 2007 23:22 GMT
> Why does the following code
>
[quoted text clipped - 6 lines]
>
> In the help it says that literal implies static.
It is a confirmed bug:
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID
=282773