Hello, I have inline function with reified type. How can i get real type in Kotlin compiler plugin at
Copy code
override fun visitCall(expression: IrCall, data: Unit): IrElement
?
s
shikasd
03/02/2020, 7:47 PM
I'd say it depends if the function is called with concrete type (e.g. not another type param). Otherwise, you can use type projection to retrieve required parameter.
AFAIK inlining is happening on the lower level than IrGeneration, so you won't get the parameter directly.
p
PHondogo
03/02/2020, 8:04 PM
Thanks for reply. Its a pity...
s
shikasd
03/02/2020, 10:31 PM
I agree, had like a million ideas with similar concept 🙂