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

Key: BOO-718
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Rodrigo B. de Oliveira
Reporter: Arron Washington
Votes: 0
Watchers: 0
Operations

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

Creating value type objects in booish throws exception

Created: 09/Apr/06 03:29 PM   Updated: 09/Apr/06 11:35 PM
Component/s: Command line tools
Affects Version/s: None
Fix Version/s: 0.7.6

Time Tracking:
Not Specified


 Description  « Hide
(where the hell did the Interpreter component for JIRA go?)

As noted by yury on IRC, there appears to be a bug when instanizing value types inside of booish.

Here's a cleaned up example.

import System.Drawing
p = Point()

####RESULTS####
System.InvalidCastException: Unable to cast object of type 'System.Drawing.Point
' to type 'System.IConvertible'.
at Boo.Lang.Runtime.RuntimeServices.CheckNumericPromotion(Object value)
at Boo.Lang.Runtime.RuntimeServices.UnboxBoolean(Object value)
at Boo.Lang.Runtime.RuntimeServices.ToBool(Object value)
at Boo.Lang.Interpreter.InteractiveInterpreter.ProcessLastValue()
at Boo.Lang.Interpreter.InteractiveInterpreter.InternalLoopEval(String code)
at Boo.Lang.Interpreter.InteractiveInterpreter.ConsoleLoopEval()



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Doug H - 09/Apr/06 04:33 PM
around 2193 to 2197

Rodrigo B. de Oliveira - 09/Apr/06 11:35 PM
Thanks for the report!