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
voidTestGenericPatternMatching<T>(TanT){switch(anT){caseintv:break;casestrings:break;}}
```cs**Expected Behavior**:
Pattern matching works
**Actual Behavior**:
The code above does not compiles with a strange error "an expression of type T can not be handled by an int",the match withobjectis OK but well not really useful (anythingmatcheswithobject).
The text was updated successfully, but these errors were encountered:
Version Used:
Visual Studio 2017
Steps to Reproduce:
Create a function like this:
The text was updated successfully, but these errors were encountered: