mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 15:54:03 +00:00
Reuse it in the main type-checking path in DoubleColonExpressionResolver, as well as in ArgumentTypeResolver which handles the case when a callable reference appears as an argument to another call
13 lines
284 B
Kotlin
Vendored
13 lines
284 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_EXPRESSION
|
|
class A
|
|
|
|
fun main() {
|
|
val <!UNUSED_VARIABLE!>foo<!> = ::<!UNRESOLVED_REFERENCE!>foo<!>
|
|
|
|
::<!UNRESOLVED_REFERENCE!>bar<!>
|
|
|
|
A::<!UNRESOLVED_REFERENCE!>bar<!>
|
|
|
|
<!UNRESOLVED_REFERENCE!>B<!>::<!UNRESOLVED_REFERENCE!>bar<!>
|
|
}
|