summary refs log tree commit diff stats
path: root/tests/modules/tmismatchedvisibility.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modules/tmismatchedvisibility.nim')
-rw-r--r--tests/modules/tmismatchedvisibility.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/modules/tmismatchedvisibility.nim b/tests/modules/tmismatchedvisibility.nim
new file mode 100644
index 000000000..b649a5a3e
--- /dev/null
+++ b/tests/modules/tmismatchedvisibility.nim
@@ -0,0 +1,9 @@
+discard """
+  errormsg: "public implementation 'tmismatchedvisibility.foo(a: int)' has non-public forward declaration at "
+  line: 8
+"""
+
+proc foo(a: int): int
+
+proc foo*(a: int): int =
+  result = a + a