Is there a reason for not allowing inner+data classes?

Inner classes have a hidden reference to an instance of the outer class, from which they were instantiated.
When an inner class is also a data class, this leads to a question, whether that reference is one of the data class component properties?
And whether that reference affects how the functions equals, hashCode, toString, componentN of the data class are generated depends on the answer on this question.

2 Likes