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

Key: BOO-384
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Rodrigo B. de Oliveira
Reporter: Sorin Ionescu
Votes: 0
Watchers: 0
Operations

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

Boo should catch invalid Main signatures.

Created: 06/Jul/05 01:59 PM   Updated: 18/Nov/05 08:03 AM
Component/s: Compiler
Affects Version/s: 0.5.6
Fix Version/s: 0.7.5

Time Tracking:
Not Specified


 Description  « Hide
There are only 4 signatures that Main can have:
1) public static def Main() as void
2) public static def Main() as int
3) public static def Main(args as (string)) as void
4) public static def Main(args as (string)) as int

Boo compiles:
public static def Main(*args) as <any type>:
pass

public static def Main(args as (int)) as <any type>:
pass

Upon runtime, the result is:
Unhandled Exception: System.MethodAccessException: Main method for type 80131510 has invalid signature.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.