summaryrefslogtreecommitdiff
path: root/mcs/errors/cs3024-2.cs
blob: dd0f96f3d565c699aff0a59340cd7d8fbfc919de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// CS3024: Constraint type `A' is not CLS-compliant
// Line: 15
// Compiler options: -warn:1 -warnaserror

using System;
[assembly:CLSCompliant (true)]

[CLSCompliant (false)]
public abstract class A
{
}

public class C
{
	public static void Foo<T>() where T : A
	{
	}
}