commit
51c875863e
2 changed files with 16 additions and 1 deletions
9
tests/modules/tmismatchedvisibility.nim
Normal file
9
tests/modules/tmismatchedvisibility.nim
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue