Skip to content
New issue

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

struct extends #101

Closed
llywuchen opened this issue Nov 6, 2019 · 1 comment
Closed

struct extends #101

llywuchen opened this issue Nov 6, 2019 · 1 comment

Comments

@llywuchen
Copy link

struct User: Codable {
var id: Int? = 0
var name: String?
var nick: String?
var site: String?
}

into:

data class User: Codable(
var id: Int? = 0,
var name: String? = null,
var nick: String? = null,
var site: String? = null) {}

should be:

data class User(
var id: Int? = 0,
var name: String? = null,
var nick: String? = null,
var site: String? = null): Codable()

@angelolloqui
Copy link
Owner

Fixed with #107

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants