a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
27 lines
288 B
C#
27 lines
288 B
C#
// CS0612: `O1' is obsolete
|
|
// Line: 23
|
|
// Compiler options: -warnaserror
|
|
|
|
using System;
|
|
|
|
[Obsolete]
|
|
class O1
|
|
{
|
|
}
|
|
|
|
#pragma warning disable 612
|
|
class A
|
|
{
|
|
public virtual void Foo<T> () where T : O1
|
|
{
|
|
}
|
|
}
|
|
#pragma warning restore 612
|
|
|
|
class B : A
|
|
{
|
|
public override void Foo<U> ()
|
|
{
|
|
}
|
|
}
|