Kotlin Discussions
Is there a reason for not allowing inner+data classes?
Language Design
yole
April 27, 2017, 7:25pm
5
You can simply make it nested inside another class. Nested classes can be data classes.
show post in topic
Related topics
Topic
Replies
Views
Activity
Limitations for data class declaration?
Uncategorized
3
1356
August 3, 2014
Data class with private constructor
Language Design
2
16129
September 9, 2022
This inner enum doesn't compile
Support
1
1092
February 18, 2019
Question about nested classes syntax
Language Design
4
1746
November 12, 2023
Disable componentN() generation in data classes
Language Design
20
5950
September 14, 2020