From 1e88bf1defe2aeb18394e4130f019acb70a63c75 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Sat, 9 Feb 2019 18:22:07 +0100 Subject: 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 --- tests/pragmas/tcustom_pragma.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/pragmas/tcustom_pragma.nim') 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 -- cgit 1.4.1-2-gfad0