Mark
01/17/2020, 6:05 AMinner class
I can access it normally from outside of that class and containing class. But if I move that function out of inner class (but still inside the containing class) and make it an extension fun of the inner class, then I cannot access it in the same way - instead I need to do with(instanceOfContainingClass)
Why the difference?miha-x64
01/17/2020, 8:29 AMMark
01/17/2020, 8:39 AMmiha-x64
01/17/2020, 8:53 AMto compile that function into the inner classExtensions do not work that way! The are compiled exactly into the same place where they are declared.
Mark
01/17/2020, 8:59 AMmiha-x64
01/17/2020, 9:01 AMMark
01/17/2020, 9:01 AMMark
01/17/2020, 9:02 AMmiha-x64
01/17/2020, 9:07 AMMark
01/17/2020, 9:10 AMmiha-x64
01/17/2020, 9:11 AMMark
01/17/2020, 9:15 AMmiha-x64
01/17/2020, 9:16 AMMark
01/17/2020, 9:19 AMmiha-x64
01/17/2020, 9:21 AM