diff options
Diffstat (limited to 'tests/template/mcan_access_hidden_field.nim')
-rw-r--r-- | tests/template/mcan_access_hidden_field.nim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/template/mcan_access_hidden_field.nim b/tests/template/mcan_access_hidden_field.nim new file mode 100644 index 000000000..2c0026ec1 --- /dev/null +++ b/tests/template/mcan_access_hidden_field.nim @@ -0,0 +1,8 @@ + +type + Foo* = object + fooa, foob: int + +proc createFoo*(a, b: int): Foo = Foo(fooa: a, foob: b) + +template geta*(f: Foo): untyped = f.fooa |