summary refs log tree commit diff stats
path: root/tests/pragmas
diff options
context:
space:
mode:
authorLemonBoy <LemonBoy@users.noreply.github.com>2019-02-09 18:22:07 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-02-09 18:22:07 +0100
commit1e88bf1defe2aeb18394e4130f019acb70a63c75 (patch)
tree2f7a37884148e715e81d99bd596358431cdfa8cb /tests/pragmas
parent467519f80d59114b7474738a90e9108757f51c36 (diff)
downloadNim-1e88bf1defe2aeb18394e4130f019acb70a63c75.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/pragmas')
-rw-r--r--tests/pragmas/tcustom_pragma.nim2
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