zsmb
04/12/2025, 10:47 AMfactory<Flags?> { ... }
But later on, I can't pass in a nullable type param to a get()
call:
get<Flags?>()
~~~~~~ Type argument is not within its bounds: must be subtype of 'Any'.
Shouldn't these type parameters have the same bounds?withoutclass
04/14/2025, 2:19 PMget
is always non-nullable, but you can utilize getOrNull
here