summary refs log tree commit diff stats
path: root/tests/pragmas
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2018-09-17 18:10:05 +0300
committerzah <zahary@gmail.com>2018-09-17 22:17:39 +0300
commit95072fbcc3379a3dfa2356f6c1ed1bfad5b6a656 (patch)
treecea079c80862c2569ea071ce0c7bed3eab71b7e1 /tests/pragmas
parent34388c5cc5a3fc92d4cb94d815671b483295ba54 (diff)
downloadNim-95072fbcc3379a3dfa2356f6c1ed1bfad5b6a656.tar.gz
Bugfix: custom pragmas were not working on public fields
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 d7b199a22..ae0f39631 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