Conform functions to extension functions and vice versa
#KT-5989 Fixed
This commit is contained in:
@@ -5,8 +5,8 @@ fun bar(f: Int.()->Unit) {
|
||||
|
||||
Resolved call:
|
||||
|
||||
Resulting descriptor: fun Int.invoke(): Unit defined in kotlin.ExtensionFunction0
|
||||
Resulting descriptor: fun Int.invoke(): Unit defined in kotlin.Function1
|
||||
|
||||
Explicit receiver kind = BOTH_RECEIVERS
|
||||
Dispatch receiver = f {ExtensionFunction0<Int, Unit>}
|
||||
Dispatch receiver = f {[kotlin.extension] Function1<Int, Unit>}
|
||||
Extension receiver = 1 {Int}
|
||||
|
||||
@@ -9,8 +9,8 @@ interface A {
|
||||
|
||||
Resolved call:
|
||||
|
||||
Resulting descriptor: fun Int.invoke(): Unit defined in kotlin.ExtensionFunction0
|
||||
Resulting descriptor: fun Int.invoke(): Unit defined in kotlin.Function1
|
||||
|
||||
Explicit receiver kind = BOTH_RECEIVERS
|
||||
Dispatch receiver = foo {ExtensionFunction0<Int, Unit>}
|
||||
Dispatch receiver = foo {[kotlin.extension] Function1<Int, Unit>}
|
||||
Extension receiver = 1 {Int}
|
||||
|
||||
Reference in New Issue
Block a user