summary refs log tree commit diff stats
path: root/tests/modules/tmismatchedvisibility.nim
blob: fd582b571e055aa68af026c4fb13715d5dbf333d (plain) (blame)
1
2
3
4
5
6
7
8
9
discard """
  errormsg: "public implementation 'tmismatchedvisibility.foo(a: int)[declared in tmismatchedvisibility.nim(6, 6)]' has non-public forward declaration in "
  line: 8
"""

proc foo(a: int): int

proc foo*(a: int): int =
  result = a + a