Skip to content
This repository has been archived by the owner. It is now read-only.
This repository has been archived by the owner. It is now read-only.

RECS0096 fires on partial classes where not used #378

Open
@RachelDavids

Description

@RachelDavids
	internal class Class1<T>
		where T : class, new()

	{
		public T GetItem()
		{
			T x = new T();
			return x;
		}
	}

	internal partial class Class1<T> // fires here
	{
		public object BaseItem()
		{
			return new object();
		}
	}

Removing the Type parameter makes the second portion a different type, but the parameters are required on ALL declarations of the type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions