Issue Details (XML | Word | Printable)

Key: BOO-937
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Avishay Lavie
Reporter: Bill Pierce
Votes: 1
Watchers: 2
Operations

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

Support CLR 3.5 Extension Methods

Created: 06/Jan/08 05:55 PM   Updated: 17/Jan/09 09:37 AM   Resolved: 17/Jan/09 09:37 AM
Return to search
Component/s: Compiler
Affects Version/s: None
Fix Version/s: 0.9

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive ClrExtensionFailingSample.zip (417 kB)
2. Zip Archive ClrExtensions.zip (4 kB)

Environment: .Net Framework 3.5
Issue Links:
Related
 
dependent
 

Testcase included: yes
Patch Submitted: Yes


 Description  « Hide

Add support for calling .Net 3.5 Extension methods. Attached patch supports resolving extension methods.



Rodrigo B. de Oliveira made changes - 07/Feb/08 09:32 AM
Field Original Value New Value
Assignee Rodrigo B. de Oliveira [ bamboo ]
Rodrigo B. de Oliveira made changes - 07/Feb/08 09:32 AM
Status Open [ 1 ] In Progress [ 3 ]
Cedric Vivier made changes - 10/Apr/08 05:04 AM
Link This issue depends upon BOO-993 [ BOO-993 ]
Cedric Vivier made changes - 10/Apr/08 05:04 AM
Link This issue depends upon BOO-994 [ BOO-994 ]
Rodrigo B. de Oliveira made changes - 26/Jun/08 04:11 PM
Assignee Rodrigo B. de Oliveira [ bamboo ]
Steve Wagner added a comment - 17/Nov/08 07:18 AM

I see this patch in trunk and as i understand #994 correctly, extension methods should working know. But i can not get them to work with the compiler from rev 3076.

Attached a simple example project which demonstrates what i want to do.


Steve Wagner made changes - 17/Nov/08 07:18 AM
Attachment ClrExtensionFailingSample.zip [ 38154 ]
Avishay Lavie made changes - 18/Nov/08 03:33 PM
Assignee Avishay Lavie [ avish ]
Avishay Lavie made changes - 18/Nov/08 03:36 PM
Link This issue depends upon BOO-1100 [ BOO-1100 ]
Avishay Lavie added a comment - 18/Nov/08 03:40 PM - edited

Your testcase fails because Boo only recognizes extensions when the type declaring them is imported; importing the namespace of that type isn't enough. I've created BOO-1100 to represent this.


Steve Wagner added a comment - 19/Nov/08 04:17 AM

Thanks Avishay! You meen i need to import the type like this: import BooTests.Ext?


Avishay Lavie added a comment - 19/Nov/08 12:29 PM

Exactly.


Steve Wagner added a comment - 23/Nov/08 11:16 AM

This should be also depends on BOO-1103


Avishay Lavie made changes - 23/Nov/08 12:53 PM
Link This issue relates to BOO-1103 [ BOO-1103 ]
Avishay Lavie made changes - 17/Jan/09 09:37 AM
Resolution Fixed [ 1 ]
Fix Version/s 0.9 [ 13816 ]
Status In Progress [ 3 ] Resolved [ 5 ]