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
Take a simple scenario including a non-exhaustive switch expression:
intx=0;_=xswitch{1=>2};// warning CS8509: The switch expression does not handle all possible values of its input type (it is not exhaustive). For example, the pattern '0' is not covered.
It looks like the type System.Runtime.CompilerServices.SwitchExpressionException needs to be explicitly allowed by Unbreakable for this to be allowed to run on SharpLab.
But practically, SharpLab is no longer using Unbreakable except in fallback flows (until container flows are more stable).
So your example code should already run in SharpLab, unless you hit a fallback scenario.
Hi @RikkiGibson, just FYI this library is being deprecated (not closing any issues in case someone wants to contribute a fix years later, however unlikely that is). However this is no longer a problem for SharpLab specifically, the code should run fine.
Take a simple scenario including a non-exhaustive switch expression:
It looks like the type
System.Runtime.CompilerServices.SwitchExpressionException
needs to be explicitly allowed by Unbreakable for this to be allowed to run on SharpLab.https://sharplab.io/#v2:EYLgtghglgdgNAFxAJwK7wCYgNQB9YIAEAHoQLyEAMA3ALABQA+uSYQM4DuUCAxgBaEA3oQCM5AHyEATIQC+dekA
The text was updated successfully, but these errors were encountered: