diff options
author | Zahary Karadjov <zahary@gmail.com> | 2020-03-30 18:56:03 +0300 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2020-04-01 19:38:44 +0200 |
commit | ce9a4ed124d798d0287a62e4700a32f1d15878c9 (patch) | |
tree | 73a31457060d51b283be407c5cf37af20b6b0b1e /tests/objects/tobj_asgn_dont_slice.nim | |
parent | d374c6373bed4d6807ff70b6179328e79fbe1ac8 (diff) | |
download | Nim-ce9a4ed124d798d0287a62e4700a32f1d15878c9.tar.gz |
Replace tfHasRequiresInit with a more accurate mechanism
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).
Diffstat (limited to 'tests/objects/tobj_asgn_dont_slice.nim')
0 files changed, 0 insertions, 0 deletions