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

Key: BOO-794
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Avishay Lavie
Reporter: mfowle
Votes: 0
Watchers: 0
Operations

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

Incorrect handling of ref parameters for mixed generic types

Created: 31/Jan/07 01:59 PM   Updated: 23/Feb/07 03:36 PM
Component/s: Compiler
Affects Version/s: None
Fix Version/s: 0.7.7

Time Tracking:
Not Specified

Environment: debian linux with mono 1.1.18

Testcase included: yes


 Description  « Hide
there appears to be some issue when a type parameter is a ref parameter to a generic type's method. test case below.

import System.Collections.Generic

class Foo:
a as string

dict = Dictionary [of string, Foo]()
dict["cow"] = Foo()

bar as Foo
dict.TryGetValue("cow", bar)

compilation results in:
"boo.sample(10,17): BCE0017: The best overload for the method 'System.Collections.Generic.Dictionary`2[[System.String], [Foo]].TryGetValue(string, ref System.Collections.Generic.Dictionary`2.TValue)' is not compatible with the argument list '(string, Foo)'."



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Avishay Lavie - 08/Feb/07 04:49 PM
Changed title to more accurately describe the problem.

Avishay Lavie - 23/Feb/07 03:36 PM
Fixed in r2413.