summary refs log tree commit diff stats
path: root/tests/errmsgs
diff options
context:
space:
mode:
authorClyybber <darkmine956@gmail.com>2021-06-14 19:19:58 +0200
committerGitHub <noreply@github.com>2021-06-14 19:19:58 +0200
commit8c42f5be0274d8d16910401d7d5a45aa35a63afd (patch)
treefc204e1726babcdbe9e7aca421eecf4c357e1a54 /tests/errmsgs
parent0adb47aa15e242983c8251d85367c0fe45fc5f12 (diff)
downloadNim-8c42f5be0274d8d16910401d7d5a45aa35a63afd.tar.gz
Small scope refactoring (#18263)
* Small scope refactoring

* Add test for #10251

* Add inline where appropriate
Diffstat (limited to 'tests/errmsgs')
-rw-r--r--tests/errmsgs/t10251.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/errmsgs/t10251.nim b/tests/errmsgs/t10251.nim
new file mode 100644
index 000000000..5ad373ba3
--- /dev/null
+++ b/tests/errmsgs/t10251.nim
@@ -0,0 +1,12 @@
+discard """
+errormsg: "redefinition of 'foo'; previous declaration here: t10251.nim(9, 9)"
+line: 11
+column: 9
+"""
+
+type
+    Enum1 = enum
+        foo, bar, baz
+    Enum2 = enum
+        foo, bar, baz
+