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:
committed by
Stanislav Erokhin
parent
8920e67c5a
commit
75e9e35669
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user