summary refs log tree commit diff stats
path: root/tests/modules/tmismatchedvisibility.nim
blob: 6f2f79282cb8ad7ec4fc7aadcdc71ac8bb5f65ea (plain) (blame)
1
2
3
4
5
6
7
8
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