Since when is it possible to have multiple compani...
# compiler
t
Since when is it possible to have multiple companion objects? And how does the compiler decide which one is the companion object that gets referenced in the metadata?
k
Are you sure it is possible? I just get "only one companion object allowed per class"
t
I investigated further and it seems... It both is and isn't. Apparently those checks are only done after annotation processing has finished. Somehow the compiler allows malformed code to reach the annotation processor. Since I had my break point in the annotation processor I never noticed the errors that would come afterwards.