diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2024-05-21 20:53:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-21 14:53:08 +0200 |
commit | 309f97af4c03c2237a890aad147c261232b73acd (patch) | |
tree | bde054f2072a177e33719b96f17b2e93b48b30e3 /tests/async/tasync_in_seq_constr.nim | |
parent | b838d3ece1e8530f355b5078b2daa96ac01acab5 (diff) | |
download | Nim-309f97af4c03c2237a890aad147c261232b73acd.tar.gz |
fixes #23627; Simple destructor code gives invalid C (#23631)
fixes #23627 ```nim type TestObj = object of RootObj TestTestObj = object of RootObj testo: TestObj proc `=destroy`(x: TestTestObj) = echo "Destructor for TestTestObj" proc testCaseT() = echo "\nTest Case T" let tt1 {.used.} = TestTestObj(testo: TestObj()) ``` When generating const object fields, it's likely that we need to generate type infos for the object, which may be an object with custom hooks. We need to generate potential consts in the hooks first. https://github.com/nim-lang/Nim/pull/20433 changed the semantics of initialization. It should evaluate`BracedInit` first.
Diffstat (limited to 'tests/async/tasync_in_seq_constr.nim')
0 files changed, 0 insertions, 0 deletions