Issue Details (XML | Word | Printable)

Key: BOO-1024
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Cedric Vivier
Reporter: Daniel Grunwald
Votes: 0
Watchers: 0
Operations

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

Calling method with nullable parameter generates invalid IL

Created: 25/May/08 08:16 AM   Updated: 22/Jan/09 09:22 AM   Resolved: 13/Jan/09 07:52 AM
Return to search
Component/s: Compiler
Affects Version/s: 0.8.2, 0.9
Fix Version/s: 0.9

Time Tracking:
Not Specified


 Description  « Hide

This program causes booc to generate invalid IL:
def X(i as int?):
print i
X(42)

Generated IL:
...
L_001d: ldc.i4 42
L_0022: call void ProgramModule::X(valuetype [mscorlib]System.Nullable`1<int32>)

PEVerify output:
[IL]: Error: [C:\temp\test.exe :ProgramModule::Main][offset 0x00000022][found Int32][expected value 'System.Nullable`1[System.Int32]'] Unexpected type on the stack.



Daniel Grunwald made changes - 25/May/08 08:16 AM
Field Original Value New Value
Fix Version/s 0.8.3 [ 13815 ]
Cedric Vivier made changes - 25/May/08 08:57 AM
Assignee Cedric Vivier [ cedricv ]
Cedric Vivier made changes - 25/May/08 08:57 AM
Status Open [ 1 ] In Progress [ 3 ]
Cedric Vivier added a comment - 13/Jan/09 07:52 AM

Fixed in rev. 3099


Cedric Vivier made changes - 13/Jan/09 07:52 AM
Resolution Fixed [ 1 ]
Status In Progress [ 3 ] Resolved [ 5 ]
Rodrigo B. de Oliveira made changes - 22/Jan/09 09:22 AM
Affects Version/s 0.9 [ 13816 ]
Fix Version/s 0.8.3 [ 13815 ]
Fix Version/s 0.9 [ 13816 ]