Files
kotlin/compiler/testData/diagnostics/tests/callableReference/resolve/noFakeDescriptorForObject.kt
Alexander Udalov b44f060ffa Do not consider fake variables for objects in :: resolution
The main change is in
NewResolutionOldInference.ResolutionKind.CallableReference, where
createVariableProcessor creates a processor which no longer lists objects

 #KT-12322 Fixed
2016-07-04 15:42:35 +03:00

12 lines
220 B
Kotlin
Vendored

// !CHECK_TYPE
// KT-12322 Overload resolution ambiguity with constructor references when class has a companion object
class Foo {
companion object
}
fun test() {
val a = ::Foo
checkSubtype<() -> Foo>(a)
}