Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Compiler
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
The Boo compiler needs to treat generator methods that return a generic parameter or an open constructed type differently, and generate a generic generator return type rather than a concrete one.
Example of generic generator method yielding a generic parameter (this won't compile):
import System.Collections.Generic def YieldStuff of T (items as IEnumerable of T): for item in items: yield item
Can't create a generic generator type until creation of generic types is supported.