[metadata] Use MONO_PROFILER_API on MonoClass getters in checked builds (#20440)
[mono-project.git] / mcs / errors / cs3002-1.cs
blobcd830907f7c3a568fe82a67638f8e20ad55b82b0
1 // CS3002: Return type of `CLSClass.Foo()' is not CLS-compliant
2 // Line: 13
3 // Compiler options: -warnaserror -warn:1
5 using System;
6 [assembly:CLSCompliant(true)]
8 [CLSCompliant(false)]
9 public interface I1 {
12 public class CLSClass {
13 protected internal I1 Foo() {
14 return null;
17 static void Main() {}