Kotlin compiler is giving me error while running below :
fun main() { val x = object { val i = 1 val k = "s" } val y = x