diff options
author | Varriount <Varriount@users.noreply.github.com> | 2014-10-23 21:49:38 -0400 |
---|---|---|
committer | Clay Sweetser <clay.sweetser@gmail.com> | 2014-10-29 18:57:03 -0400 |
commit | a8a9dd66991d5b5a46676e5202df642170dcb2f9 (patch) | |
tree | e0c78a82139436c7f8f66f06c76455cb842400a9 /tests | |
parent | 201d3c9ed0dac94a337f23416c556b45f7fc1138 (diff) | |
parent | 9025e89fb91353a1ded538b587b2e26848122460 (diff) | |
download | Nim-a8a9dd66991d5b5a46676e5202df642170dcb2f9.tar.gz |
Fix #1561
Diffstat (limited to 'tests')
-rw-r--r-- | tests/modules/tmismatchedvisibility.nim | 9 |
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..6f2f79282 --- /dev/null +++ b/tests/modules/tmismatchedvisibility.nim @@ -0,0 +1,9 @@ +discard """ + line: 8 + errormsg: "public implementation 'tmismatchedvisibility.foo(a: int): int' has non-public forward declaration in tmismatchedvisibility.nim(6,5)" +""" + +proc foo(a: int): int + +proc foo*(a: int): int = + result = a + a \ No newline at end of file |