Skip to content

Commit

Permalink
Test doc comment not preceding declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
sortraev committed Nov 27, 2024
1 parent a3428a0 commit 5d6f1cb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/doc_comments_may_only_precede_declarations.fut
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- ==
-- error: Documentation comments.*only permitted when preceding declarations
entry main (x: i32) =
let y =
| 1337
-- | 42
in y

0 comments on commit 5d6f1cb

Please sign in to comment.