Fixed incorrect "No cast needed" warning when casting from extension function to regular one and vise versa

#KT-11780 Fixed
This commit is contained in:
phx402@gmail.com
2016-04-24 20:26:30 +01:00
committed by Stanislav Erokhin
parent 8920e67c5a
commit 75e9e35669
4 changed files with 39 additions and 3 deletions
@@ -0,0 +1,10 @@
fun f(a: (Int) -> Unit) {
a as Int.() -> Unit
f1(a as Int.() -> Unit)
}
fun f1(a: Int.() -> Unit) {
a as (Int) -> Unit
f(a as (Int) -> Unit)
}
@@ -0,0 +1,4 @@
package
public fun f(/*0*/ a: (kotlin.Int) -> kotlin.Unit): kotlin.Unit
public fun f1(/*0*/ a: kotlin.Int.() -> kotlin.Unit): kotlin.Unit