19 lines
352 B
C#
Raw Normal View History

// CS3002: Return type of `CLSClass.Foo()' is not CLS-compliant
// Line: 13
// Compiler options: -warnaserror -warn:1
using System;
[assembly:CLSCompliant(true)]
[CLSCompliant(false)]
public interface I1 {
}
public class CLSClass {
protected internal I1 Foo() {
return null;
}
static void Main() {}
}