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
I don't know if it's doable but it would be so great to be able to trigger warnings instead of errors.
One example of a use case is that I check that I handled all the cases, thereby in the future if I add a case, I don't forget to handle it in this piece of code. But when I create a case, I may want to test other parts of the code before handling it here.
constfoo: a|b|c= ...;if(isA(foo)){ ... }elseif(isB(foo)){ ... }elseif(isC(foo)){ ... }else{// we check that we handled all the cases, thereby if we add a case in the future, we will trigger an errorassert<Equals<typeoffoo,never>>();}
The text was updated successfully, but these errors were encountered:
Hi, thank you a lot for this great library.
I don't know if it's doable but it would be so great to be able to trigger warnings instead of errors.
One example of a use case is that I check that I handled all the cases, thereby in the future if I add a case, I don't forget to handle it in this piece of code. But when I create a case, I may want to test other parts of the code before handling it here.
The text was updated successfully, but these errors were encountered: