Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0619-24.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6cdb23ec4dd06882e02cb35e3671db2520e3d074 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// cs0619.cs: 'Obsolete' is obsolete: ''
// Line: 19
// Compiler options: -unsafe

class Box {
        public Helper o;
}

[System.Obsolete("", true)]
unsafe struct Obsolete {
}

unsafe struct Helper {}

class MainClass {
        unsafe public static void Main ()
        {
                Box b = new Box ();
                fixed (Obsolete* p = &b.o)
                {
                }
        }
}