summary refs log tree commit diff stats
path: root/tests/distinct/tborrowdot.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/distinct/tborrowdot.nim')
-rw-r--r--tests/distinct/tborrowdot.nim13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/distinct/tborrowdot.nim b/tests/distinct/tborrowdot.nim
new file mode 100644
index 000000000..820ee3b71
--- /dev/null
+++ b/tests/distinct/tborrowdot.nim
@@ -0,0 +1,13 @@
+
+type
+  Foo = object
+    a, b: int
+    s: string
+
+  Bar {.borrow: `.`.} = distinct Foo
+
+var bb: ref Bar
+new bb
+bb.a = 90
+bb.s = "abc"
+