Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardKotlindispatch virtual vs staticSingle-choice MCQ

Calling an extension function declared at the top level, e.g. `fun String.shout() = uppercase()`, compiles the call `"hi".shout()` to which dispatch form?

fun String.shout(): String = this.uppercase() val x = "hi".shout()