Exception on any arithmetic operation in projection

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • 8.0.0
    • Affects Version/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      _planets.Select(p => new { val = p.orderFromSun + 5 }).ToArray();
      

      Throws

      System.InvalidOperationException: The binary operator Add is not defined for the types 'System.Nullable`1[System.Int32]' and 'System.Int32'.
      

              Assignee:
              Unassigned
              Reporter:
              Oleksandr Poliakov
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: