summaryrefslogtreecommitdiff
path: root/mcs/errors/cs3002-5.cs
blob: 5ee098ad63feb624d768e46982f8664e5fc17d8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS3002: Return type of `CLSClass.Test1()' is not CLS-compliant
// Line: 14
// Compiler options: -warnaserror -warn:1

using System;
[assembly:CLSCompliant(true)]

[CLSCompliant(false)]
public interface I {}

public class C {}

public class CLSClass {
	public I Test1() { return null; } 
	public C Test2() { return null; }
}