linux-packaging-mono/mcs/tests/test-cls-06.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

66 lines
1.3 KiB
C#

// Compiler options: -warnaserror
using System;
[assembly:CLSCompliant(true)]
[CLSCompliant(false)]
public delegate uint MyDelegate();
[CLSCompliant(false)]
public interface IFake {
#pragma warning disable 3018
[CLSCompliant(true)]
long AA(long arg);
#pragma warning disable 3018
[CLSCompliant(false)]
ulong BB { get; }
//[CLSCompliant(false)]
//sbyte this[ulong I] { set; }
[CLSCompliant(false)]
event MyDelegate MyEvent;
}
#pragma warning disable 3019
[CLSCompliant(false)]
internal interface I {
[CLSCompliant(false)]
void Foo();
[CLSCompliant(true)]
ulong this[int indexA] { set; }
}
#pragma warning restore 3019
interface I2 {
int Test(int arg1, bool arg2);
}
public class CLSClass {
[CLSCompliant(false)]
public delegate uint MyDelegate();
public static void Main() {}
}
public class CLSClass_2 {
[CLSCompliant (false)]
public CLSClass_2(int[,,] b) {
}
public CLSClass_2(int[,] b) {
}
public void Test (int[,] b, int i) {}
public void Test (int[,,] b, bool b2) {}
}
public class X1 {
[CLSCompliant (false)]
public void M2 (int i) {}
}
public class X2: X1 {
public void M2 (ref int i) {}
}