blob: 19b7bbfb31a081da58527f30d5e5d78b602817bd [file] [log] [blame]
40 columns |
>>> Basic cast pattern.
if (object case x as int) {;}
<<<
if (object case x as int) {
;
}
>>> More complex type.
if (o case 1 as List < int > ? ) {}
<<<
if (o case 1 as List<int>?) {}
>>> Split inside type annotation.
if (obj case value as SomeLongClass<FirstTypeArgument, SecondTypeArgument>) {}
<<<
if (obj
case value
as SomeLongClass<
FirstTypeArgument,
SecondTypeArgument
>) {}
>>> Split before 'case'.
if (object case constant as VeryLongType) {;}
<<<
if (object
case constant as VeryLongType) {
;
}
>>> Split before 'as'.
if (object case veryLongConstant as VeryLongType) {;}
<<<
if (object
case veryLongConstant
as VeryLongType) {
;
}