Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-29777

IDL should disallow optional and default for the same field

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.10
    • Affects Version/s: None
    • Component/s: IDL
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Platforms 2017-07-10

      It does not make sense for a field to have a default value and be marked as optional. This needs to be an error in IDL and tests added. This came up in a recent code review.

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: