Files
kotlin-fork/compiler/testData/cli/jvm/newInferenceImpliesProgressiveModeForNI.kt
T
Mikhail Zarechenskiy 0c8b847ae6 Introduce compiler key to disable compatibility resolution mechanism
Enable it if one was using new inferene before 1.4

 #KT-40128 Fixed
 #KT-40112 Fixed
 #KT-40113 Fixed
2020-07-10 14:23:45 +03:00

11 lines
163 B
Kotlin
Vendored

fun bar(): Int = 0
object Scope {
fun <T> foo(f: () -> T): T = f()
fun bar(x: Int = 0): String = ""
fun test() {
val r1 = foo(::bar)
}
}