Esempio n. 1
0
        public static void Entry()
        {
            var             cls = new Derived <long>();
            Inf <int, long> inf = cls;

            inf.Foo(123);
            inf.Foo(123, 456L);
        }
Esempio n. 2
0
        private static T EntryT <T>(T bla)
        {
            var          cls = new Derived <T, ushort>();
            Inf <int, T> inf = cls;
            T            t   = bla;

            inf.Foo(123);
            inf.Foo(123, t, "");
            return(bla);
        }
Esempio n. 3
0
        public static unsafe void Entry()
        {
            char *[]  cc = null;
            int *[]   ii = null;
            short *[] ss = null;

            var cls = new Sub2();

            cls.Foo(cc, ii);
            cls.Foo(cc, ss);

            Inf <int *[]> inf = cls;

            inf.Foo(cc, ii);

            Inf2 <short *[]> inf2 = cls;

            inf2.Foo(cc, ss);

            var cls2 = new Cls <long *[]>();

            Sub1 <int *[]> s1 = cls;

            s1.Foo(cc, ii);
            s1.Foo(cc, ss);

            new Cls <int *[]>();
        }
Esempio n. 4
0
        public static void Entry()
        {
            var            c = new Cls <int, int>();
            Inf <int, int> i = c;

            i.Foo(c);
        }
Esempio n. 5
0
        public static void Entry()
        {
            Inf <long> i = new Cls();

            i.Foo(1.2f, (long)999999);
            Inf <char> i2 = null;

            i2.Foo(1234, 'a');
        }
Esempio n. 6
0
        public static int Entry()
        {
            char *[]  cc = new char *[1];
            int *[]   ii = new int *[1];
            short *[] ss = new short *[1];

            var cls = new Sub2();

            cls.Foo(cc, ii);
            if (path != 1)
            {
                return(1);
            }

            cls.Foo(cc, ss);
            if (path != 2)
            {
                return(2);
            }

            Inf <int *[]> inf = cls;

            inf.Foo(cc, ii);
            if (path != 1)
            {
                return(3);
            }

            Inf2 <short *[]> inf2 = cls;

            inf2.Foo(cc, ss);
            if (path != 2)
            {
                return(4);
            }

            var cls2 = new Cls <long *[]>();

            Sub1 <int *[]> s1 = cls;

            s1.Foo(cc, ii);
            if (path != 1)
            {
                return(5);
            }

            s1.Foo(cc, ss);
            if (path != 2)
            {
                return(6);
            }

            new Cls <int *[]>();

            return(0);
        }
Esempio n. 7
0
        public static void Entry()
        {
            Inf inf = null;

            inf.Foo();
        }
Esempio n. 8
0
 private static int Bla(Inf inf)
 {
     return(inf.Foo());
 }