ringabout
309f97af4c
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.
2024-05-21 14:53:08 +02:00
..
2020-07-25 20:35:20 +02:00
2020-07-07 22:43:36 +02:00
2020-07-07 22:43:36 +02:00
2020-07-10 18:10:32 +02:00
2020-07-28 19:18:46 +02:00
2022-03-23 21:07:05 +01:00
2021-01-20 11:05:56 +01:00
2020-10-12 10:12:32 +01:00
2020-07-07 22:43:36 +02:00
2020-11-12 09:28:32 +01:00
2020-11-18 23:28:52 +01:00
2022-02-11 11:16:27 +01:00
2022-09-28 13:59:27 +02:00
2021-02-17 14:17:35 +01:00
2021-03-04 19:33:16 +01:00
2023-07-06 15:15:50 +02:00
2022-10-03 16:12:23 +02:00
2021-10-29 19:55:48 +02:00
2023-03-16 16:06:26 +01:00
2022-10-05 10:35:40 +02:00
2023-03-28 17:52:23 +02:00
2022-09-27 20:07:26 +02:00
2022-09-27 20:07:26 +02:00
2022-04-25 11:07:55 +02:00
2022-09-28 13:12:08 +02:00
2022-10-01 22:35:09 +02:00
2022-10-02 06:44:10 +02:00
2023-03-23 16:10:14 +01:00
2022-12-28 16:23:37 +01:00
2024-01-18 21:47:13 +01:00
2023-07-10 10:31:13 +02:00
2023-08-17 13:33:19 +02:00
2023-10-07 07:43:39 +02:00
2024-01-26 08:04:16 +01:00
2023-03-28 13:27:17 +02:00
2020-03-09 15:32:38 +01:00
2020-07-25 20:35:20 +02:00
2024-02-01 16:51:07 +01:00
2024-05-15 20:52:18 +02:00
2024-05-21 14:53:08 +02:00
2021-08-01 12:52:24 +01:00
2021-02-08 09:46:07 +01:00
2020-10-15 09:42:43 +02:00
2020-11-26 10:24:52 +01:00
2023-05-10 12:54:43 +02:00
2020-10-19 22:25:43 +02:00
2023-03-16 16:06:26 +01:00
2023-03-16 16:06:26 +01:00
2020-07-27 13:07:09 +02:00
2023-11-02 11:14:50 +01:00
2023-11-02 11:14:50 +01:00
2021-10-31 06:22:00 +01:00
2023-06-30 14:54:46 +02:00
2021-07-20 22:15:06 +02:00
2021-03-06 22:35:02 +01:00
2022-06-29 22:37:24 +08:00
2022-01-16 11:08:38 +01:00
2020-10-01 17:39:48 +02:00
2020-11-26 10:24:52 +01:00
2023-06-02 16:03:32 +02:00
2020-03-09 15:32:38 +01:00
2020-05-12 19:19:31 +02:00
2022-10-17 23:48:51 +02:00
2021-07-13 12:44:29 +02:00
2021-07-12 11:55:40 +02:00
2020-04-22 17:34:35 +02:00
2023-11-25 18:27:27 +01:00
2020-10-19 22:25:43 +02:00
2020-09-11 01:50:42 +02:00
2020-03-18 14:25:10 +01:00
2023-12-02 05:28:24 +01:00
2021-07-27 09:36:19 +02:00
2023-06-13 12:03:20 +02:00
2020-09-20 10:43:57 +02:00
2023-06-27 22:42:48 +02:00
2022-10-01 16:46:51 +02:00
2022-01-04 13:29:50 +01:00
2021-05-18 21:45:37 +02:00
2020-09-24 15:41:45 +02:00
2023-07-05 11:21:57 +02:00
2020-11-09 12:26:12 +01:00
2022-09-01 17:52:13 +02:00
2023-11-25 18:27:27 +01:00
2023-03-02 05:29:40 +01:00
2023-06-02 16:03:32 +02:00
2020-09-20 22:47:48 +02:00
2020-11-15 15:47:42 +01:00
2020-12-05 23:15:17 +01:00
2021-06-25 14:12:23 +02:00
2022-09-28 13:59:27 +02:00
2022-11-11 19:31:59 +01:00
2021-02-08 09:46:07 +01:00
2021-07-13 14:17:59 +02:00
2020-11-28 09:09:31 +01:00
2020-07-04 07:37:24 +02:00
2021-07-27 14:32:56 +02:00
2022-11-16 16:35:20 +01:00
2020-10-15 12:52:30 +02:00
2022-10-11 09:17:09 +02:00