There’s a matcher `beOfType(expected: KClass<*&...
# kotlintest
s
There’s a matcher
beOfType(expected: KClass<*>)
which does this, so I guess you can just use
shouldBe beOfType(clazz)
c
if you look at the
shouldBeInstanceOf
implementation you'll find that it is in fact just a reified wrapper around
beOfType(clazz)
matcher
👍 1