a416fde814
This way the check works for callable reference arguments. Also candidate applicability during resolution does not change compared to the old inference. ^KT-37530 Fixed
12 lines
139 B
Kotlin
Vendored
12 lines
139 B
Kotlin
Vendored
// !WITH_NEW_INFERENCE
|
|
|
|
abstract class Abstract
|
|
|
|
fun <D> create(fn: () -> D): D {
|
|
return fn()
|
|
}
|
|
|
|
fun main() {
|
|
create(::Abstract)
|
|
}
|