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

cs1510-3.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d76807409e134c3ee5bc6e758cb2f34812d136c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// error CS1510: An lvalue is required as an argument to out or ref
// Line: 19
// this is bug #70402

using System;
 
class T {
 
        enum A { a, b }
 
        static void Convert (out A a)
        {
                a = A.a;
        }
 
        static void Main ()
        {
                int a = 0;
                Convert (out (A) a);
        }
}