diff options
author | LemonBoy <LemonBoy@users.noreply.github.com> | 2019-02-09 18:22:07 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-02-13 23:30:14 +0100 |
commit | eb30c786949c25f99e90f7b73e0f1714ffb6e3c0 (patch) | |
tree | 9813f6b125e021e54fb0c5c64fde81f154d2fa4a /tests | |
parent | dd422bfb0f7cdd2f3b87c5d2367ead0307be308d (diff) | |
download | Nim-eb30c786949c25f99e90f7b73e0f1714ffb6e3c0.tar.gz |
Misc macro things (#10612)
* Misc cleanup in macro code Generate error messages using `error` instead of `assert`. Fixes #10574 * Fix crash with hasCustomPragma on quoted fields Use the `$` operator instead of reaching for the `strVal` field directly
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pragmas/tcustom_pragma.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pragmas/tcustom_pragma.nim b/tests/pragmas/tcustom_pragma.nim index 7f781f6f1..0dc85cf67 100644 --- a/tests/pragmas/tcustom_pragma.nim +++ b/tests/pragmas/tcustom_pragma.nim @@ -22,7 +22,7 @@ import custom_pragma block: # A bit more advanced case type Subfield {.defaultValue: "catman".} = object - c* {.serializationKey: "cc".}: float + `c`* {.serializationKey: "cc".}: float MySerializable = object a {.serializationKey"asdf", defaultValue: 5.} : int |