blob: 299fafe96c641466e4f30ffbbb86a6076ac0727b [file] [edit]
/-!
Tests that a block comment that is moved to a line of its own gets the multi-line form if the
one-line form does not fit within the page width.
-/
-- The `;` that the comment follows is not rendered.
def f (n : Nat) : Nat :=
let a :=
/-
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-/
(let b := n
b + 1)
a
-- The comment is wider than the optimality cutoff width.
/-
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
-/
def g (x : Nat) : Nat := x