int x = 5;
if (x is int v)
{
}
More complex form like do compile but causing problems in formatting and false syntax error warnings:
object o = "";
if (o is string { Length: 5 } s)
{
}​
(In more complex scripts regions formatting become totally corrupted. Error highlighting appearing in dozens of places.)
And here are false warnings if I'll type any symbols (including innocent SPACE) anywhere:
Comment