Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardKotlinJVM bytecode for inline functionsSingle-choice MCQ

Why does a `reified` type parameter REQUIRE its function to be `inline`, in terms of what the compiler does at the call site?

inline fun <reified T> isInstance(x: Any): Boolean = x is T