21 lines
421 B
C#
Raw Normal View History

// Compiler options: -warnaserror -warn:4
using System;
public class Test
{
[Obsolete]
static void Method () {}
public static void Main ()
{
#pragma warning disable 219 , 612
int i = 0;
Method ();
#pragma warning restore 612 // Some comment here
#pragma warning disable // Some comment here
Method ();
#pragma warning restore
}
}