Skip to content

Commit

Permalink
tests: added tests for checking documentation in forward declarations…
Browse files Browse the repository at this point in the history
… for hasDoc rule

FossilOrigin-Name: 3d0d39d81dd5930365001dae07926317eaa3fcd2d9a19d3eecee135aca86b9ed
  • Loading branch information
thindil committed Jan 12, 2025
1 parent 1313aa1 commit 9aaa1d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/invalid/hasdoc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

var i* = 0

func myFunc()

func myFunc() =
discard

Expand Down
4 changes: 3 additions & 1 deletion tests/valid/hasdoc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
## Template doc.
var i* = 0 ## Template doc.

func myFunc() =
func myFunc()
## Template doc.

func myFunc() =
discard

proc myProc() =
Expand Down

0 comments on commit 9aaa1d5

Please sign in to comment.