Closed toth-istvan-zoltan closed 4 months ago
Confirmed that this is a compiler bug and wont' be fixed up until 2.1.0.
https://youtrack.jetbrains.com/issue/KT-58886
I'll go with the workaround.
The workaround to be implemented:
AdaptiveFragmentCompanionCollector
annotationAdaptiveFragmentCompanion
addAll
with all public fragment companions from the init of classes annotated with AdaptiveFragmentCompanionCollector
Works in sandbox with JS (489df2e).
The problem
Possible workaround
Add an export holder manually to the codes. This is quite cumbersome but it would probably work:
Then the compiler plugin can add functions to this export which can in turn return with the actual fragment instance.