The code above will fail if we're using @ContributesSubcomponent.Factory but will pass for @Subcomponent.Factory
Another thing is, while I haven't tested it, the KSP part of the code gen might support the above code, since in here it use getAllFunctions that will returns declared and inherited functions.
The document said that
But
ContributesSubcomponent.Factory
actually doesn't support inherited function.The code above will fail if we're using
@ContributesSubcomponent.Factory
but will pass for@Subcomponent.Factory
Another thing is, while I haven't tested it, the KSP part of the code gen might support the above code, since in here it use
getAllFunctions
that will returns declared and inherited functions.