It would also be nice if we could do document cons...
# announcements
c
It would also be nice if we could do document constructor properties with this kind of syntax as well:
Copy code
class Test(
  /** Put the documentation comment here */
  val test: Int
)
s
you can already do this
z
That just documents the property, it won’t show up as constructor parameter documentation. You need
@param
for that.
👆 1
s
oh weird, that almost seems like a bug lol
z
Maybe. Apparently JetBrains doesn’t actually like using
@param
to document parameters anyway, so I’m not sure they’d agree.