summary refs log tree commit diff stats
path: root/tests/parser/tunicodeidents.nim
diff options
context:
space:
mode:
authorOscar Nihlgård <oscarnihlgard@gmail.com>2018-05-30 09:40:35 +0200
committerOscar Nihlgård <oscarnihlgard@gmail.com>2018-06-03 09:05:50 +0200
commitfd2823636820e995f0d1c4370542ee1dbfc55442 (patch)
tree079a04c68559f7d9cff16353ff64735e4e1fdda2 /tests/parser/tunicodeidents.nim
parent25a41d5d90c707e8d926308c495c95e2cd13d984 (diff)
downloadNim-fd2823636820e995f0d1c4370542ee1dbfc55442.tar.gz
Multi byte characters should not be treated as part of an operator
Diffstat (limited to 'tests/parser/tunicodeidents.nim')
-rw-r--r--tests/parser/tunicodeidents.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/parser/tunicodeidents.nim b/tests/parser/tunicodeidents.nim
new file mode 100644
index 000000000..3347eb7a9
--- /dev/null
+++ b/tests/parser/tunicodeidents.nim
@@ -0,0 +1,11 @@
+discard """
+    action: run
+"""
+
+# #7884
+
+type Obj = object
+    ö: int
+
+let o = Obj(ö: 1)
+doAssert o.ö == 1