Hmm. So I have this ```somethingReturningNullable(...
# kotest
d
Hmm. So I have this
Copy code
somethingReturningNullable().let {
  it.shouldNotBeNull()
  it.foo.shouldBeNull()
}
which works fine due to the contracts thing. I thought I could rewrite it as
Copy code
somethingReturningNullable().apply { shouldNotBeNull() }.foo.shouldBeNull()
but this doesn’t actually work. I guess contracts aren’t smart enough? Is there a more concise way to do something like this? I mean certainly I can just use
!!
but it’s nice to get better errors back from the matcher, I think