I'm running into an issue where `declaration.getAllFunctions()` is not picking up functions though a...
e
I'm running into an issue where
declaration.getAllFunctions()
is not picking up functions though a type generated in a previous round, ie: If I have:
Copy code
interface Source { fun targetFun() {} }
interface Generated : Source // this is generated in round 1
interface Target : Generated // this is processed in round 2
then
Copy code
declaration.getAllFunctions()
won't include
targetFun()
interestingly enough walking up to the interface manually does work
Copy code
((declaration.superTypes.first().resolve().declaration as KSClassDeclaration).superTypes.first().resolve().declaration as KSClassDeclaration).getDeclaredFunctions()
t
Sounds like a bug in KSP. Could you file a bug?