If you're calling it polymorphically it won't be i...
# announcements
k
If you're calling it polymorphically it won't be inlined.
e
that is?
k
Let's say
class Child : Parent
and this function is in
Child
. If you have a
val child: Child
and a
val parent: Parent
only
child.foo()
will be inlined but
parent.foo()
won't.
Because it's not possible to inline, since there are multiple implementations and they're picked at runtime.
e
got it, thanks
it make sense though