Will the following code compile?

struct A : int { };
Explanation
No, it won't, since it is impossible to inherit from base types.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback