From Kotlin documentation about Circular Imports: “Therefore, circular imports are allowed, but they might suggest a design problem in your code.”
Is there any flag, similar with Explicit API Mode (strict, warning) to cause warnings or errors when the compiler notice a circular import? From my experience so far most of the times, if not always, a circular import is a design issue and could be easily avoid with a better code design. Therefore, it would be nice to have the compiler verifying it and helping us to detect a possible design issue.
Is there any way to check this at Compilation Time today, maybe with some flag like Explicit API Mode?
Thanks in advance!
(I’m not sure if this should be post on Support or somewhere else).