Hello, I have inline function with reified type. ...
# compiler
p
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
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
Thanks for reply. Its a pity...
s
I agree, had like a million ideas with similar concept 🙂