Files
kotlin-fork/compiler/testData/diagnostics/tests/classObjects/resolveFunctionInsideClassObject.kt
T

10 lines
202 B
Kotlin
Vendored

// FIR_IDENTICAL
package test
class Test {
fun test(): Int = 12
companion object {
val a = <!UNRESOLVED_REFERENCE!>test<!>() // Check if resolver will be able to infer type of a variable
}
}