Files
kotlin-fork/compiler/testData/diagnostics/tests/objects/objectInsideFun.kt
T

12 lines
187 B
Kotlin
Vendored

// FIR_IDENTICAL
interface A {
val foo: Int
val bar: String
get() = ""
}
fun test(foo: Int, bar: Int) {
object : A {
override val foo: Int = foo + bar
}
}