Both the declaration pattern and the type pattern are commonly used with is, and the two are quite similar to each other (the first includes a variable declaration, the second doesn't) but this one is not the declaration pattern. It is an example of a type pattern.
Both the declaration pattern and the type pattern are commonly used with
is
, and the two are quite similar to each other (the first includes a variable declaration, the second doesn't) but this one is not the declaration pattern. It is an example of a type pattern.