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

cs0266-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 56aba3f9fe88aa69e6f71fa0faada4d690c196f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// cs0266.cs: Cannot implicitly convert type 'Helper*' to 'Obsolete*'. An explicit conversion exists (are you missing a cast?)
// Line: 18
// Compiler options: -unsafe

class Box {
        public Helper o;
}

unsafe struct Obsolete {
}

unsafe struct Helper {}

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