We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An Equatable struct does not need to implement Equatable in Kotlin since dataclasses are already equatable by default.
Equatable
This code:
struct User: Equatable { var id: Int? = 0 var name: String? }
must be translated to:
data class User( var id: Int? = 0, var name: String? = null) {}
Instead of:
data class User( var id: Int? = 0, var name: String? = null): Equatable {}
The text was updated successfully, but these errors were encountered:
#110 Equatable structs should not include type inheritance
08db8c0
Fixed with #109
Sorry, something went wrong.
No branches or pull requests
An
Equatable
struct does not need to implementEquatable
in Kotlin since dataclasses are already equatable by default.This code:
must be translated to:
Instead of:
The text was updated successfully, but these errors were encountered: