Address Handling of Nullables

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Unknown
    • 1.3.0
    • Affects Version/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      _ = GetMongoQueryable<Person>()
             .Where(u => u.Vehicle.VehicleType.Type == (VehicleTypeEnum?) VehicleTypeEnum.Bus)
             .Select(u => u.Vehicle.LicenceNumber);
      
      _ = from person in GetMongoQueryable<Person>()
            where person.Vehicle.VehicleType.Type == (VehicleTypeEnum?) VehicleTypeEnum.Bus
            select person.Vehicle.LicenceNumber;
      
      

      In the above code snippets, no diagnostics are produced. Hence, we need to test, not only for nullable enums, but for other nullables in general.

            Assignee:
            Boris Dogadov
            Reporter:
            Ravi Raghavan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: