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

Key: BOO-822
Type: Task Task
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Cedric Vivier
Reporter: Darius Damalakas
Votes: 0
Watchers: 1
Operations

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

Interpretator incorrectly adds two nullable decimals

Created: 02/May/07 11:19 AM   Updated: 06/Apr/08 09:23 AM
Component/s: Compiler
Affects Version/s: None
Fix Version/s: 0.8.2

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive nullable 2007 05 03.zip (383 kb)
2. Zip Archive nullable.zip (384 kb)

Environment: .Net 2.0
Issue Links:
dependent
 

Testcase included: yes


 Description  « Hide
The boo libraries were build using #2467 revision.

Attachment contains a single test case, where the last assert fails.
It tries to add two nullable decimals, but always returns null.

Other asserts tries adding nullable decimals and strings, and other possible combinations.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Darius Damalakas - 03/May/07 03:24 AM
Added one more assert statement.

m_interpreter.Eval("tp.PracticeDuration.Value + tp.PracticeDuration.Value;");
Assert.AreEqual(10m, m_interpreter.LastValue);

This assert does not fail.


Cedric Vivier - 06/Apr/08 09:23 AM