a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
14 lines
308 B
C#
14 lines
308 B
C#
// CS0619: `Obsolete.MethodError()' is obsolete: `Do not use it.'
|
|
// Line: 12
|
|
|
|
class Obsolete {
|
|
[System.Obsolete("Do not use it.", true)]
|
|
public static void MethodError() {
|
|
}
|
|
}
|
|
|
|
class MainClass {
|
|
public static void Main () {
|
|
Obsolete.MethodError();
|
|
}
|
|
} |