Replies: 1 comment
-
A better annotation would be |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When overriding a method without changing its signature, it would be very useful to have an annotation for inheriting the documentation and the annotations from the "parent" method.
The effect of this should be the same of writing identical annotations to
Test.hello
andFoo.hello
.Additional annotations may be allowed below
@inheritDoc
. Such as defining a covariant return type, or adding more text.I am sure LuaLS can do some of it automatically via
--- @class Test:Foo
, but@inheritDoc
would be more generic and work also for other patterns such as delegation, decoration, or "abstract" methods/interfaces.Just a random idea! Thanks!
Beta Was this translation helpful? Give feedback.
All reactions