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
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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.helloandFoo.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@inheritDocwould 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