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

Empty constructor for models with fields with default constructor #10

Open
AlexPl292 opened this issue Jan 21, 2019 · 0 comments
Open

Comments

@AlexPl292
Copy link
Member

Empty constructor for RdWrapper is expected using this model

val RdContent = classdef {
    property("myProperty", string)
    field("myField", string).default("Default")
}

val RdWrapper = classdef {
    field("content", RdContent)
}

but RdContent should be explicitly passed as argument: RdWrapper(RdContent()).

RdWrapper should have empty constructor because myProperty is property and myField has default value.

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

1 participant