Type pattern in switch expression involving generic type with non-keyword type parameters causes syntax error #47614
Labels
4 - In Review
A fix for the issue is submitted for review.
Area-Compilers
Bug
New Language Feature - Pattern Matching
Pattern Matching
Milestone
Version Used: Compiler version: '3.8.0-4.20460.4 (64f2392)'. Language version: preview.
Steps to Reproduce:
Compile this code: (SharpLab)
Expected Behavior: Compiles without errors
Actual Behavior: The lines marked have errors associated with them:
This does not happen with the equivalent switch statement: (SharpLab)
The text was updated successfully, but these errors were encountered: