Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / bug-508538.cs
1 using System;
2 using System.Reflection;
3
4 public class HostExpression {}
5 public class OMetaStream<T> {}
6 public class OMetaList<T> {}
7
8 public class OMetaParser {
9         public virtual bool NameFirst (OMetaStream<char> inputStream, out object result) {
10                 result = null;
11                 Console.WriteLine ("ok");
12                 return true;
13         }
14
15 }
16
17 public class Driver {
18         static int Main () {
19                 var f = new OMetaParser ();
20                 var m = typeof (OMetaParser).GetMethod ("NameFirst");
21
22                 var arg0 = new OMetaStream<char> ();
23                 var arg1 = new OMetaList<HostExpression> ();
24
25                 bool res = (bool)m.Invoke (f, new object[] { arg0, arg1 });
26                 return res ? 0 : 1;
27         }
28 }