Merge pull request #1589 from Varriount/fix-1561

Fixes #1561
This commit is contained in:
Andreas Rumpf 2014-11-02 14:16:19 +01:00
commit 51c875863e
2 changed files with 16 additions and 1 deletions

View file

@ -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