blob: dffbecef52223c13dd69b576301946f04fec2db3 [file] [log] [blame]
class Foo {
String? x;
int y;
Foo(Object? o) : x = o as String?, y = 0;
Foo.a(dynamic o) : y = o is String ? o.length : null, x = null;
Foo.b(dynamic o) : y = o is String? ? o.length : null, x = null;
Foo.c(dynamic o) : y = o as String ? o.length : null, x = null;
Foo.d(dynamic o) : y = o as String? ? o.length : null, x = null;
}