https://kotlinlang.org logo
#compiler
Title
# compiler
t

Tóth István Zoltán

07/26/2022, 3:54 AM
In an IR plugin using
dump
, I see that the compiler generates fake overrides for everything defined in the superclass. Is this necessary for the backend? I mean it is not a trouble to generate them but it makes the generated IR quite big. What do these fake overrides actually do?
i

Ilmir Usmanov [JB]

07/27/2022, 4:15 PM
Yes, they are used in backend. For example, for inline classes, it generates static bridges, which call fake override methods.
t

Tóth István Zoltán

07/29/2022, 6:13 AM
Ok, thank you.
3 Views