Skip to content

Need annotation for nullable property with non-nullable setter #26621

@jcouv

Description

@jcouv

Let's bring this up with LDM.

        public ITaskItem[]? Sources
        {
            set
            {
                if (UsedCommandLineTool)
                {
                    NormalizePaths(value!); // PROTOTYPE(NullableDogfood): value set should be non-null
                }

                _store[nameof(Sources)] = value;
            }
            get { return (ITaskItem[])_store[nameof(Sources)]; }
        }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions