Any reason why one is marked as a function and the other one is a method?
m
mzgreen
06/09/2020, 9:53 AM
Second one is an extension function, it’ll be compiled into a static method so I guess that’s the reason
👍 2
mzgreen
06/09/2020, 9:54 AM
Check how it looks as a java code: Tools->Kotlin->Show bytecode and then tap Decompile button
j
jeggy
06/09/2020, 10:48 AM
its actually not compiled to a static method
jeggy
06/09/2020, 10:50 AM
but makes it into a parameter
m
mzgreen
06/09/2020, 11:01 AM
Oh, probably because it’s not a top level extension but a member of MyClass. In this case my guess would be that extension functions are marked as functions?
j
jeggy
06/09/2020, 12:28 PM
it doesn't change anything 😛 But I just felt it was a bit weird looking at a class in the structure view where sometimes it was