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

RECS0096 fires on partial classes where not used #378

Open
RachelDavids opened this issue Oct 4, 2018 · 0 comments
Open

RECS0096 fires on partial classes where not used #378

RachelDavids opened this issue Oct 4, 2018 · 0 comments

Comments

@RachelDavids
Copy link

	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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant