mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
The main change is in NewResolutionOldInference.ResolutionKind.CallableReference, where createVariableProcessor creates a processor which no longer lists objects #KT-12322 Fixed
12 lines
220 B
Kotlin
Vendored
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)
|
|
}
|