Advanced
Kotlin
Q93 / 100
What is Kotlin's multiplatform expect/actual mechanism at the compiler level?
Correct! Well done.
Incorrect.
The correct answer is B) The compiler matches each expect declaration in commonMain to its actual implementation in platform source sets during compilation
B
Correct Answer
The compiler matches each expect declaration in commonMain to its actual implementation in platform source sets during compilation
Explanation
The Kotlin compiler resolves expect/actual linkage at compile time. If a platform source set lacks an actual for an expected declaration, compilation fails.
Progress
93/100