ikozlowski
10/26/2019, 4:39 PMT:Any
but fails when I want to support nullable fields. Any idea how to cast other to not null type so I can access it class.members?
fun <T : Any?> assertk.Assert<T>.isEqualToIgnoringId(
other: T
) {
all {
if (other == null)
this.isEqualTo(null)
else
other?.let { it::class.members }
}
}
Kroppeb
10/26/2019, 5:01 PMT
extend Any
and then use Assert<T?>
and other:T?
?ikozlowski
10/26/2019, 5:18 PM