What does this program print?

from Sealed classes and interfaces
Kotlin 2.4.10 intermediate 2 min

What does this program print?

kotlin
sealed interface Result<out T> {
    data object Loading : Result<Nothing>
    data class Success<T>(val value: T) : Result<T>
}

fun main() {
    val result: Result<String> = Result.Loading
    println(result)
}
Open in playground
Report an error