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

Key: BOO-958
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

ref keyword for generic parameters causes compiler error

Created: 04/Feb/08 05:06 PM   Updated: 05/Feb/08 05:55 AM
Component/s: Emitter, Compiler
Affects Version/s: 0.8
Fix Version/s: 0.8.1

Time Tracking:
Not Specified

Testcase included: yes


 Description  « Hide
interface IFoo[of T]:
def Bar(ref i as T)

or

class Foo[of T]:
def Bar(ref i as T):
pass

causes the following compiler error...

Entering Boo.Lang.Compiler.Steps.EmitAssembly
ASSEMBLY LOADED: <dynamic>test, Version=1.0.2957.0, Culture=neutral, PublicKeyToken=null
ASSEMBLY LOADED: C:\WINDOWS\assembly\GAC_32\ISymWrapper\2.0.0.0__b03f5f7f11d50a3a\ISymWrapper.dll
Leaving Boo.Lang.Compiler.Steps.EmitAssembly
BOOC : error BCE0011: An error occurred during the execution of the step 'Boo.Lang.Compiler.Steps.EmitAssembly': 'Object reference not set to an instance of an object.'.
at Boo.Lang.Compiler.Steps.EmitAssembly.GetReferenceTypeName(Type t)
at Boo.Lang.Compiler.Steps.EmitAssembly.GetParameterTypes(ParameterDeclarationCollection parameters)
at Boo.Lang.Compiler.Steps.EmitAssembly.DefineMethod(TypeBuilder typeBuilder, Method method, MethodAttributes attributes)
at Boo.Lang.Compiler.Steps.EmitAssembly.DefineTypeMembers(TypeDefinition typeDefinition)
at Boo.Lang.Compiler.Steps.EmitAssembly.DefineTypes()
at Boo.Lang.Compiler.Steps.EmitAssembly.Run()
at Boo.Lang.Compiler.CompilerPipeline.RunStep(CompilerContext context, ICompilerStep step)
— End of inner exception stack trace —



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Cedric Vivier - 05/Feb/08 05:55 AM
fixed in rev. 2840