JetBrains / JetBrains/rd

Empty constructor for models with fields with default constructor

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
417
Forks
62
Avg merge
9h 15m
Merged PRs (30d)
7

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.