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

            b.getFoo().value = 37;
            return(0);
        }
Exemple #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;
        }
Exemple #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);
        }
Exemple #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;
        }
Exemple #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);
            }
        }