Uploaded image for project: 'Visual Studio'
  1. Visual Studio
  2. VS-93

Address Handling of Nullables

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • 1.3.0
    • Affects Version/s: 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@mongodb.com Boris Dogadov
            Reporter:
            ravi.raghavan@mongodb.com Ravi Raghavan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: