Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
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 :
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
- is depended upon by
-
BOO-937
Support CLR 3.5 Extension Methods
-
Would really much like to see this fixed... map/reduce is neat.