[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:
Justin Paupore
2023-01-11 15:36:45 -08:00
committed by Ilya Kirillov
parent cd61f545a8
commit 16f14a21e2
7 changed files with 18 additions and 3 deletions
@@ -1,3 +1,3 @@
expression: xy
expected type: (kotlin.Int) -> kotlin.String
expected type: kotlin.reflect.KFunction1<kotlin.Int, kotlin.String>
functionClassKind: KFunction
@@ -1,3 +1,3 @@
expression: xy
expected type: suspend () -> kotlin.Unit
expected type: kotlin.reflect.KSuspendFunction0<kotlin.Unit>
functionClassKind: KSuspendFunction