History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BOO-873
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Rodrigo B. de Oliveira
Reporter: Rodrigo B. de Oliveira
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Boo

extension methods should be preferred over non accessible members

Created: 14/Sep/07 08:21 AM   Updated: 14/Sep/07 08:42 AM
Component/s: None
Affects Version/s: 0.7.9
Fix Version/s: 0.8

Time Tracking:
Not Specified


 Description  « Hide
"""
Extension.Bar
Foo2.Baz
Foo.Bar
"""
class Foo:
protected def Bar():
print "Foo.Bar"

class Foo2(Foo):
def Baz():
print "Foo2.Baz"
Bar()

[Extension]
def Bar(f as Foo):
print "Extension.Bar"

// if a method is not accessible at a specified call site
// but an extension method is, the extension method
// should be called
Foo2().Bar()
Foo2().Baz()



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.