mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 15:54:03 +00:00
24 lines
476 B
Kotlin
Vendored
24 lines
476 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_EXPRESSION, -UNUSED_PARAMETER
|
|
// !WITH_NEW_INFERENCE
|
|
|
|
class A
|
|
|
|
fun test1() {
|
|
val foo = ::foo
|
|
|
|
::bar
|
|
|
|
A::bar
|
|
|
|
<!UNRESOLVED_REFERENCE!>B<!>::bar
|
|
}
|
|
|
|
fun test2() {
|
|
fun foo(x: Any) {}
|
|
fun foo() {}
|
|
|
|
<!UNRESOLVED_REFERENCE!>Unresolved<!>::foo
|
|
<!INAPPLICABLE_CANDIDATE!>foo<!>(<!UNRESOLVED_REFERENCE!>Unresolved<!>::foo)
|
|
<!INAPPLICABLE_CANDIDATE!>foo<!>(<!UNRESOLVED_REFERENCE!>Unresolved<!>::unresolved)
|
|
::unresolved
|
|
} |