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

Key: BOO-845
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Avishay Lavie
Votes: 0
Watchers: 0
Operations

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

Cannot emit generator methods whose yield type is a generic parameter

Created: 21/Jul/07 09:01 AM   Updated: 03/Aug/07 04:54 PM
Component/s: Compiler
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Issue Links:
Related
 
dependent

Testcase included: yes


 Description  « Hide
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


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Avishay Lavie - 21/Jul/07 09:02 AM
Can't create a generic generator type until creation of generic types is supported.