Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumKotlininline functionsSingle-choice MCQ

What prevents this public inline function from compiling?

class Cache { private val store = HashMap<String, Int>() inline fun getOrZero(key: String): Int { return store[key] ?: 0 } }