[AA] Render reflection functional types as class types.
Render KFunctionN and KSuspendFunctionN by their class names, rather than using arrow syntax. These types have additional functionality beyond purely being able to invoke them (e.g. getting the name of the referred function), so using arrow syntax throws away that functionality and may cause breakages in the resulting code.
This commit is contained in:
committed by
Ilya Kirillov
parent
cd61f545a8
commit
16f14a21e2
+1
-1
@@ -1,3 +1,3 @@
|
||||
expression: xy
|
||||
expected type: (kotlin.Int) -> kotlin.String
|
||||
expected type: kotlin.reflect.KFunction1<kotlin.Int, kotlin.String>
|
||||
functionClassKind: KFunction
|
||||
|
||||
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
expression: xy
|
||||
expected type: suspend () -> kotlin.Unit
|
||||
expected type: kotlin.reflect.KSuspendFunction0<kotlin.Unit>
|
||||
functionClassKind: KSuspendFunction
|
||||
|
||||
Reference in New Issue
Block a user