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

Key: BOO-813
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Cedric Vivier
Reporter: Spruce Weber
Votes: 0
Watchers: 0
Operations

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

Anonymous callable types are incompatible with generic type references

Created: 02/Apr/07 12:58 PM   Updated: 16/May/08 09:23 AM
Component/s: Compiler
Affects Version/s: 0.7.6
Fix Version/s: 0.8.2

Time Tracking:
Not Specified

Environment: DOTNET 2.0

Testcase included: yes


 Description  « Hide
The example below fails to compile with the following error...

Error BCE0055: Internal compiler error: Unable to cast object of type 'Boo.Lang.Compiler.Ast.CallableTypeReference' to type 'Boo.Lang.Compiler.Ast.SimpleTypeReference'..

namespace test

import System
import System.Collections.Generic as gen

class foo:
def Test(val as int):
print val.ToString()

def RunTest():
steps = gen.Dictionary[of int, callable(int)]()
steps.Add(1, Test)
steps.Add(5, Test)

for item as gen.KeyValuePair[of int, callable(int)] in steps:
item.Value(item.Key)



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Cedric Vivier - 16/May/08 09:23 AM
fixed in rev. 2951