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
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user