Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Functions with generics missing from dynamic library headers #2893

Closed
mjbryant opened this issue Apr 17, 2019 · 2 comments
Closed

Functions with generics missing from dynamic library headers #2893

mjbryant opened this issue Apr 17, 2019 · 2 comments

Comments

@mjbryant
Copy link

It looks like functions with generic types just get left out of generated dynamic libraries with no warnings or anything. Using 1.3.30 on Linux, with the simple kotlin file

fun <T> getItemFromList(index: Int, list: List<T>): T {
    return list[index]
}

running kotlinc-native src/kotlin/main.kt -o build/a -p dynamic produces an a_api.h file with no exported symbols.

If this isn't implemented, it should at least warn you that functions with generic types won't be included in the dynamic library.

@Pomis
Copy link

Pomis commented May 15, 2019

I think I have seen the implementation of this in some experimental branch. Really hope to see it in next releases.

@SvyatoslavScherbina
Copy link
Collaborator

According to migrating issue tracking to YouTrack, closing this issue in favour of https://youtrack.jetbrains.com/issue/KT-39212

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants