You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, it is a bug in the context of data class inspection. But what is the use case for interfaces without any methods, but which contain only with fields? May be we need to create an inspection or code style inspection to prohibit that?
Fields can be overridden by implementations. We provide traits that can provide either a lazy or eager implementation depending on context, for example.
Describe the bug
Interfaces are violating the USE_DATA_CLASS rule.
Expected behavior
Interfaces cannot be data classes, so this should not happen.
Observed behavior
Steps to Reproduce
Have an interface with simple fields:
Environment information
The text was updated successfully, but these errors were encountered: