https://kotlinlang.org logo
#announcements
Title
# announcements
n

nyxcode

09/05/2017, 9:57 PM
What If module
A
depends on an inline function of module
B
? If both modules are on the classpath as seperate .jars, you'd expect that a change to an inline function in module
B
only affects, well, module
B
. But thats not the case, because the functions are inlined in module
A
. A change to an inline function in module
B
would not have any effect because the old version of the function is still inlined in module
A
j

jw

09/05/2017, 10:11 PM
Yep! The argument here is exactly what @orangy said, though. The old inlined code has to use public API so someone could have manually written the same thing.
(And that restriction tends to cover you about 98% of the time into not doing anything stupid.)
2 Views