Files
Nim/tests/macros
Jake Leahy b3b87f0f8a Mark macros.error as .noreturn. (#23081)
Closes #14329 

Marks `macros.error` as `.noreturn` so that it can be used in
expressions. This also fixes the issue that occurred in #19659 where a
stmt that could be an expression (Due to having `discardable` procs at
the end of other branches) would believe a `noreturn` proc is returning
the same type e.g.
```nim
 proc bar(): int {.discardable.} = discard

if true: bar()
else: quit(0) # Says that quit is of type `int` and needs to be used/discarded except it actually has no return type
```
2023-12-17 12:29:46 +01:00
..
2019-05-29 22:21:51 +02:00
2021-04-02 11:56:30 +02:00
2019-02-06 22:31:36 -06:00
2020-10-30 15:53:45 +01:00
2023-04-11 09:37:53 +02:00
2023-12-15 07:48:34 +01:00
2023-12-15 07:48:34 +01:00
2017-07-25 09:28:23 +02:00
2023-12-15 07:48:34 +01:00
2016-12-20 22:42:25 +01:00
2020-09-16 21:37:23 +02:00
2019-09-27 07:02:54 +02:00
2019-11-06 14:35:45 +01:00
2019-05-21 21:31:40 +02:00
2019-05-30 11:13:29 +02:00
2017-07-25 09:28:23 +02:00
2020-08-27 15:50:59 +02:00
2020-07-14 16:44:56 +02:00
2017-07-25 09:28:23 +02:00
2017-07-25 09:28:23 +02:00
2018-12-11 21:23:25 +01:00
2019-01-13 17:19:36 +01:00
2018-01-18 11:40:18 +01:00
2017-07-25 09:28:23 +02:00