mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 08:31:38 +00:00
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)
|
|
}
|