This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Allow "@return this" to support method chaining in subclasses | ||
---|---|---|---|
Product: | php | Reporter: | dharkness <dharkness> |
Component: | Editor | Assignee: | Ondrej Brejla <obrejla> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
dharkness
2011-03-11 01:29:42 UTC
Batch reassigning. Editor area. *** This bug has been marked as a duplicate of bug 196565 *** While this feature request is similar to 196565 in that it is asking for special handling of the @return doc comment, it's a different case. This one address fluent interfaces whereas the other is for static factory methods. reply to 1: If foo() returns not just Parent, but sometimes Child too (if it's called on a Child type), then we should use "@return this" annotation instead of "@return Parent" (it's same as for @return static). It doesn't work either by now, but I'll try to implement it. Fixed in web-main #f2368dd7777f Integrated into 'main-golden', will be available in build *201301300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/f2368dd7777f User: Ondrej Brejla <obrejla@netbeans.org> Log: #196564 and #196565 - Allow "self", "static" and "this" in a @return annotation (improved type inference) |