Kotlin / binary-compatibility-validator

Public API management tool
Apache License 2.0
761 stars 55 forks source link

Reified functions are not included in the api dump #185

Closed Kantis closed 5 months ago

Kantis commented 5 months ago

example

object Greeter {
   fun sayHello() = "Hello, world!" // included

   inline fun sayHello2() = "Hello, world!" // included

   inline fun <reified T> sayHello3() = "Hello, world!" // not included
}

produces:

public final class io/ks3/standard/Greeter {
    public static final field INSTANCE Lio/ks3/standard/Greeter;
    public final fun sayHello ()Ljava/lang/String;
    public final fun sayHello2 ()Ljava/lang/String;
}

Could this be detected and included in the dump somehow?

Kantis commented 5 months ago

Duplicates https://github.com/Kotlin/binary-compatibility-validator/issues/35