Boo

Generic extension methods

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.8.1, 0.9
  • Fix Version/s: 0.9
  • Component/s: None
  • Labels:
    None
  • Testcase included:
    yes
  • Number of attachments :
    0

Description

Support generic extension methods (such as the ones in System.Linq.Enumerable)

Currently it doesn't get resolved :

cedric@laptop:~/dev/workspace/boo/boo$ cat tests/testcases/regression/BOO-994-1.boo 
"""
2
4
"""
import System.Collections.Generic
import System.Linq from System.Core

l = List[of int]()
l.Add(1)
l.Add(2)
doublel = l.Select[of int, int]({i as int|return i*2})

for n in doublel:
        print n

cedric@laptop:~/dev/workspace/boo/boo$ booc tests/testcases/regression/BOO-994-1.boo 
Boo Compiler version 0.8.1.2896 (CLR v2.0.50727.42)
tests/testcases/regression/BOO-994-1.boo(12,13): BCE0019: 'Select' is not a member of 'System.Collections.Generic.List`1[[System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'. 
1 error(s).

Issue Links

Activity

Hide
Miika Makinen added a comment -

Would really much like to see this fixed... map/reduce is neat.

Show
Miika Makinen added a comment - Would really much like to see this fixed... map/reduce is neat.
Hide
Avishay Lavie added a comment -

'Tis underway. Soon, my child. Soon.

Show
Avishay Lavie added a comment - 'Tis underway. Soon, my child. Soon.
Hide
Avishay Lavie added a comment -

Landed in revision 3072.

Show
Avishay Lavie added a comment - Landed in revision 3072.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: