Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/callableReferencesToCompanionMembers.kt
T
Denis.Zharkov 2953e600ff K1: Deprecate incorrect callable references resolution behavior
^KT-54316 Related
^KT-54832 Fixed
2022-11-15 15:06:58 +00:00

14 lines
319 B
Kotlin
Vendored

// FIR_DUMP
class Foo {
companion object {
fun bar() {}
val baz = 42
}
}
val x1 = <!INCORRECT_CALLABLE_REFERENCE_RESOLUTION_FOR_COMPANION_LHS!>Foo::bar<!>
val x2 = Foo.Companion::bar
val x3 = <!INCORRECT_CALLABLE_REFERENCE_RESOLUTION_FOR_COMPANION_LHS!>Foo::baz<!>
val x4 = Foo.Companion::baz