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

Key: BOO-757
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Rodrigo B. de Oliveira
Votes: 0
Watchers: 1
Operations

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

Generic type references and generic type reference expressions

Created: 16/Sep/06 03:11 PM   Updated: 16/Sep/06 03:20 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 0.7.7

Time Tracking:
Not Specified

Issue Links:
dependent
 


 Description  « Hide
class Foo:
def bar() as List of int:
pass

assert List of int is typeof(List).MakeGenericType(int)
assert typeof(List of int) is List of int
assert List of int is typeof(Foo).GetMethod("bar").ReturnType



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Avishay Lavie - 16/Sep/06 03:20 PM
I think the first assertion is problematic. In C#, one would write:
Assert(List<int> == typeof(List<>).MakeGenericType(int))
and not:
Assert(List<int> == typeof(List).MakeGenericType(int))

We need a syntactic way of referring to generic definition types as opposed to simple types.