diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2014-11-02 14:16:19 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2014-11-02 14:16:19 +0100 |
commit | 51c875863ee15a9e01b264cec64ec21e82531a64 (patch) | |
tree | 1cf7901bea801ccaa74063d170989c91224e8a14 /tests/modules | |
parent | ef47a23b60eafd0179fe198049f94aca7c138fc1 (diff) | |
parent | a8a9dd66991d5b5a46676e5202df642170dcb2f9 (diff) | |
download | Nim-51c875863ee15a9e01b264cec64ec21e82531a64.tar.gz |
Merge pull request #1589 from Varriount/fix-1561
Fixes #1561
Diffstat (limited to 'tests/modules')
-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 |