Boo

Interpretator incorrectly adds two nullable decimals

Details

  • Type: Task Task
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 0.8.2
  • Component/s: Compiler
  • Labels:
    None
  • Environment:
    .Net 2.0
  • Testcase included:
    yes
  • Number of attachments :
    2

Description

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.

Issue Links

Activity

Hide
Darius Damalakas added a comment -

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.

Show
Darius Damalakas added a comment - 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.
Hide
Cedric Vivier added a comment -
Show
Cedric Vivier added a comment - BOO-985

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: