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

Key: BOO-948
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Cedric Vivier
Reporter: Cedric Vivier
Votes: 0
Watchers: 0
Operations

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

Compiler crashes when a pinvoke with no return type declared is never used

Created: 18/Jan/08 09:45 AM   Updated: 18/Jan/08 10:34 AM
Component/s: Emitter
Affects Version/s: 0.8
Fix Version/s: 0.8.1

Time Tracking:
Not Specified

Testcase included: yes


 Description  « Hide
The compiler crashes at Emit step because the return has not been inferred and thus unknown.

http://monoport.com/6530

{{
import System.Runtime.InteropServices

class Test:
def constructor():
#exit(1) uncomment this line and it will work
pass

[DllImport("libc")] #comment this line and it will work
private static def exit(status as int): #adding as void would make it work too
pass

Test()
}}



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Cedric Vivier - 18/Jan/08 10:34 AM
fixed in rev. 2830