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

test-278.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9cbd6129b97ff4191402e0d12bbea3bdfb0c9fa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;

struct Rect {
        int x;

        public int X { get { return x; } set { x = value; } }
}

class X {
        public static int Main ()
        {
                Rect rect = new Rect ();
                rect.X += 20;
                Console.WriteLine ("Should be 20: " + rect.X);
                return rect.X == 20 ? 0 : 1;
        }
}