Test Plan for C# 9 pattern-matching improvements. #40727
Labels
Area-Compilers
New Language Feature - Pattern Matching
Pattern Matching
Test
Test failures in roslyn-CI
Test-Gap
Describes a specific feature or scenario that does not have test coverage
Milestone
This is a placeholder for a test plan for the set of changes planned for pattern-matching in C# 9.
See dotnet/csharplang#2850 for a draft specification.
is (var x) _
is a tuple patternis and _
ando is or _
are type patternsis string and
ando is string or
are type patternsis (var x)
is a parenthesized var patternand
pattern combinator.byteValue is < 1000
should produce an error (1000 cannot convert tobyte
)< 0 and < 0f
)x is BaseType and/or DerivedType
x is BaseType and/or UnrelatedType
x is SomeType and/or SomeInterfaceType
x is SealedType and/or SomeInterfaceType
o is not var x
o is not _
short is > 65535
c# i switch { < 10 => ..., 1 => ... // error, subsumed
(u)int, (s)byte, short, long, double, float, char
is type-pattern
andis type
expressionIDE
(object)x != null
tox is object
should be changed to producex is not null
The text was updated successfully, but these errors were encountered: