How to view definition of the expect function from...
# announcements
a
How to view definition of the expect function from standard-library? Example: ArrayT.sort(). I tried to find a way in the Intellij, but so far no luck :<
a
Each platform implement'sit differently. So try viewing it (
Ctrl+B
) from the platform you desire to see its implementation
a
@andylamax it only shows the usages of it, not the actual declaration. And by the way I'm only having a JVM project not a multiplatform.
@andylamax check this out
a
Works for me. Maybe IDE?
a
What is your version of IDE? I'm using 2020.2
a
Usin AS 4.1 Canary 8
a
😞
@andylamax Actually
arrayOf(1).sort()
is letting me go into JVM implementation, while if you do sth like
listOf(1).sorted()
and inside declaration of sorted navigate to sort() call there it brings me to Common code (expect one) and even if with Ctrl+B I'm not able to go to actual implemenation.
Is this same case for you?
a
listOf(1).sorted()
Took me to
common
but again because this is a
common
implementation. wasn't implemented on a
expect/actual
basis
a
Ohh, thanks for clearing the doubt 🙂