Ayla
11/16/2023, 4:26 PMfun function(){
val lambda=@Annotaed {}
val lambdaList=listOf(lambda)
}
Assuming that @Annotated will change the type ()->Unit to (Node)->Unit, then the type of the variable lambda, lambdaList, and the generic parameter type of listOf all need to be modified.
However, it is obviously not a good idea to manually traverse and modify all the places where it may be used when an annotated function is found.
Any idea if there is some mechanism or utils to achieve this?
I know compose does this job very well, although I don't understand how.Icyrockton
11/18/2023, 1:32 AMAyla
11/18/2023, 5:12 AM