blob: f425904de639f36b743142101a39393176e2e6a5 [file] [log] [blame]
exhaustiveByType(Null n) => switch (n) {
Null() => 0,
};
exhaustiveByValue(Null n) => switch (n) {
null => 0,
};
exhaustiveNullable(Object? o) => switch (o) {
Object() => 0,
Null() => 1,
};
exhaustiveWithField(Null n) => switch (n) {
Null(:var hashCode) => hashCode,
};
nonExhaustiveNullable(Object? o) => switch (o) {
Object() => 1,
};
nonExhaustiveNullableRestricted(Object? o) => switch (o) {
Nullable(hashCode: 5) => 1,
};
nonExhaustiveRestrictedField(Null n) => switch (n) {
Null(hashCode: 5) => 0,
};
typedef Nullable = Object?;