The new mechanism can deal with more complex scenarios such as not nil field appearing in a non-default case object branch or a field within a generic object that may depend on a when branch. The commit also plugs another hole: the user is no longer able to create illegal default values through seq.setLen(N). |
||
|---|---|---|
| .. | ||
| t5965_1.nim | ||
| t5965_2.nim | ||
| tinvalid_construction.nim | ||