Beispiel #1
0
        public static int Main()
        {
            bar b = new bar();

            b.getFoo().value = 37;
            return(0);
        }
Beispiel #2
0
        // returns 4444
        static int Main(string[] args)
        {
            bar b = new bar();
             b.f = new foo();

             b.f.count = 4444;

             return b.f.count;
        }
Beispiel #3
0
        // returns 4444
        static int Main(string[] args)
        {
            bar b = new bar();

            b.f = new foo();

            b.f.count = 4444;

            return(b.f.count);
        }
Beispiel #4
0
        // returns 9999
        static int Main(string[] args)
        {
            bar b = new bar();
             foo f = new foo();
             b.f = f;

             if(b.f == f)
            return 9999;
             else
            return -1;
        }
Beispiel #5
0
        // returns 9999
        static int Main(string[] args)
        {
            bar b = new bar();
            foo f = new foo();

            b.f = f;

            if (b.f == f)
            {
                return(9999);
            }
            else
            {
                return(-1);
            }
        }